This tutorial provides shows how to implement a temporary workaround for making Bloom, the email opt-in plugin by Elegant Themes work in Oxygen.
Warning: This method involves editing a file inside the Bloom plugin. Obviously this is not a recommended practice and will need to be done each time Bloom gets updated.
With Oxygen active, when Bloom is activated you will be greeted with something like:
Empty needle in /Users/sridharkatakam/Local Sites/oxygen/app/public/wp-content/plugins/bloom/core/functions.php on line 647
Step 1
Edit /wp-content/plugins/bloom/core/functions.php
.
Change
if ( 0 === strpos( $core_path, $theme_dir ) ) {
$url = get_template_directory_uri() . '/core/';
} else {
$url = plugin_dir_url( __FILE__ );
}
to
$url = plugin_dir_url( __FILE__ );
Save and close the file. That’s it.
Details
The following in /wp-content/plugins/oxygen/component-framework/component-init.php
are the main points of interest:
add_filter("template_directory", "ct_disable_theme_load", 1, 1);
and
add_filter("template", "ct_oxygen_template_name");