Author is Aleš Sýkora
Updated: 24. 10. 2022, Added: 24. 10. 2022
Enable WordPress Theme when using Oxygen Builder
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' );