Category: Oxygen Builder
With 208 articles also related to:
Aleš Sýkora wrote:
Current Year for Copyright in WordPress and Oxygen Builder
November 28, 2023 in Custom Code, Oxygen Builder, Plugins, WordPress
Today I will show you the easiest way to add a year to your Copyright information. The problem is that you don’t want to change the date every year. It’s easier to get current year with PHP. Use the PHP function date() with format Y to get current year and it will change automatically after…
Aleš Sýkora wrote:
Featured (sticky) posts query with Oxygen Advanced Query Builder
November 28, 2023 in Oxygen Builder, Plugins, WordPress
If you create custom grids with posts, you may need to display the Featured Sticky Posts in some cases. This can be done with Oxygen Builders advanced query builder for repeaters and easy posts. I will continue to add examples of queries continuously. Here is the first query: Featured (sticky) posts query If you want…
Aleš Sýkora wrote:
Redirect non logged users to login page
June 26, 2021 in Custom Code, Oxygen Builder, Plugins, WordPress
Situation: Website with pages restricted only to logged in users and we do not use toolset content templates but Oxygen Builder. We are hiding the content to the non-logged in users with Oxygen conditionals but we would like to redirect user to the login page instead of displaying login form on every restricted page. Code…
Aleš Sýkora wrote:
Custom excerpt length in Oxygen, Bricks and WordPress
November 28, 2023 in Oxygen Builder, Plugins, WordPress
Need to display smaller amount of words in some WordPress excerpts? Use custom function! Put the code below to your code snippets plugin or your custom functionality plugin and use it in Oxygen Builder. Thanks to https://stackoverflow.com/a/17177847. Notice: I changed the name of function from “excerpt” to “great_tit_excerpt” because of conflict with some plugins. Custom…
Aleš Sýkora wrote:
Show Oxygen Element by current language with WPML
November 28, 2023 in Oxygen Builder, Plugins, WordPress
When you use WPML with Oxygen Builder and use 1 template for all languages, then you propably want to display/hide elements conditionally. And of course you can. Use the WPML’s filter wpml_current_language to get current language code. Then use the if function to return value you want. I am returning the language code and then…
Aleš Sýkora wrote:
Fix WooCommerce coupon input in Oxygen
November 28, 2023 in Oxygen Builder, Plugins, WordPress
The field for adding coupons in WooCommerce cart is horrible in Oxygen. If you want to fix it from: Before: After: Then feel free to use and edit my CSS:
Aleš Sýkora wrote:
Oxygen builder – default media queries
November 28, 2023 in Oxygen Builder, Plugins, WordPress
Default media queries of Oxygen. You can change them in Global Settings > Global Styles > Width & Breakpoints.
Aleš Sýkora wrote:
Oxygen Pro Menu Entire Parent Toggle Dropdown not working
November 28, 2023 in Oxygen Builder, Plugins, WordPress
If you want to have your dropdowns shown in mobile menu with toggle, you are propably using Oxygen’s Pro menu option “Entire Parent Toggles Dropdown”. And it works fine, in most cases. But there is an issue with custom links. If your link uses # then this option doesn’t work. You need to use /#…
Aleš Sýkora wrote:
Solve “No ACF gallery field data found” when the gallery field is empty with Oxygen conditionals
November 28, 2023 in Oxygen Builder, Plugins, WordPress
If you want to hide the gallery field, when your ACF gallery is empty, use this tutorial! :) Wrap Gallery with DIV and add class .gallery-wrapper (set the width of div to 100%)Open conditionals on the div.gallery-wrapperCreate conditional: Dynamic Data > Advance Custom Field > Your Gallery Field NameOutput type – leave emptySet conditional rule…
Aleš Sýkora wrote:
Get WordPress title for page, post, category, archive in Oxygen
November 28, 2023 in Oxygen Builder, Plugins, WordPress
Want to create only one template for Header and Footer – the main template – in Oxygen sometimes? So You need to display the title of current page, post, archive, category in one place. It cannot be done with Oxygen conditionals :(. So you have to make it done with code block and custom PHP.…