Aleš Sýkora / November 28, 2023 / 0 comments
Enable WordPress Theme when using Oxygen Builder
1 min read / Custom Code, Gutenberg, Oxygen Builder, Plugins, WordPress / Share on: Twitter, LinkedIn, Facebook
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.
// 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…
- Change Gutenberg color pallete to your own
- Disable gradient picker
- Disable blocks and patterns
- Load Gutenberg only if page has blocks
- Oxygen frontend styles in Gutenberg
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. 🍻