Category:

With 208 articles also related to:

Aleš Sýkora wrote:

Disable WordPress admin bar for all except admins

June 17, 2021 in WordPress

If you have your custom administration for users made with Toolset, you will propably need to hide the admin bar for your users except administrators. So if you have this question: “When you are logged in, the black wordpress top bar is showing up – is it possible to hide this bar for all users…

Continue reading

Aleš Sýkora wrote:

Use custom Javascript on form submission with Fluent Forms

June 15, 2021 in WordPress

If you need to use your custom script on form submission and using Fluent Forms, use this code in your form’s custom JS settings.

Continue reading

Aleš Sýkora wrote:

Remove Archive Title prefix in WordPress

May 28, 2021 in WordPress

Put this code in code snippets plugin.

Continue reading

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…

Continue reading

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…

Continue reading

Aleš Sýkora wrote:

Translate Phone number error message in Fluent Forms

April 15, 2021 in WordPress

If you want to translate the error message, when user fill in wrong phone number in fluent forms, you can use this custom snippet:

Continue reading

Aleš Sýkora wrote:

Change GDPR field response data in Fluent Forms

April 15, 2021 in WordPress

If you want to change the “Accepted” to something else, use the first snippet and change the $response variable. If you want to change the Terms and Condition and GDPR field response, use this code:

Continue reading

Aleš Sýkora wrote:

Enable Gutenberg for Custom post type

April 12, 2021 in WordPress

If you create Custom post type in WordPress and want to use Gutenberg editor instead of classic editor, you need to add this in your code: Here is complete example of CPT supporting Gutenberg editor.

Continue reading

Aleš Sýkora wrote:

Featured products query WooCommerce

April 11, 2021 in WordPress

If you are using your own queries for WooCommerce stores, for example in Oxygen builder’s custom code block then you may need query for featured products. You can use the query I am using inside my product sliders :-). UPDATED 10.02.2022 – field = term_id was wrong, there should be name! It stopped working with…

Continue reading

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:

Continue reading