Aleš Sýkora / November 28, 2023 / 0 comments

Enable WordPress Theme when using Oxygen Builder

Post summary: I found this 3 remove filter functions very useful, when you need to use the theme.json and other files to customize the Gutenberg blocks and still use the Oxygen Builder. I just put these lines in code snippets plugin and activate. My option for code snippets plugin is Advanced scripts. You can customize Gutenberg in…

I found this 3 remove filter functions very useful, when you need to use the theme.json and other files to customize the Gutenberg blocks and still use the Oxygen Builder.

I just put these lines in code snippets plugin and activate. My option for code snippets plugin is Advanced scripts.

Enable template when using Oxygen builder
// Reverse empty stylesheet URL being returned by Oxygen.
remove_filter( 'template_directory', 'ct_disable_theme_load', 1, 1 );
remove_filter( 'stylesheet_directory', 'ct_disable_theme_load', 1, 1 );

// Override the theme name change from "oxygen-is-not-a-theme" by Oxygen.
remove_filter( 'template', 'ct_oxygen_template_name' );

You can customize Gutenberg in many ways…

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts