Thread Starter
Nathan
(@nhadsall)
Anyone able to help explain why this is breaking elementor? Thanks!
I’m having the exact same issue. Have you figured out a workaround?
Thread Starter
Nathan
(@nhadsall)
Actually I did, I wrote some code to disable connect on the shop page when Elementor is turned on.
function sprout_fix_gc() {
if ( is_plugin_active( 'genesis-connect-woocommerce/genesis-connect-woocommerce.php' ) && is_plugin_active( 'elementor/elementor.php' ) && is_shop() ) {
add_filter( 'template_include', array( &$woocommerce, 'template_loader' ) );
remove_filter( 'template_include', 'gencwooc_template_loader', 20 );
}
}
add_action( 'wp', 'sprout_fix_gc' );
I hope that helps you too!
-
This reply was modified 4 years, 7 months ago by
Nathan.
Awesome! Thank you!
Did you have to do this for each product page template you created (product category, product single, etc.)?
Thread Starter
Nathan
(@nhadsall)
If you want to use Elementor for everything, you really should just deactivate Connect. It replaces woo templates with its own that are not compatibile with Elementor. The code above only deactivates Connect on the shop page.
Thread Starter
Nathan
(@nhadsall)
No, sorry. This just works for the shop page. The approach is basically to disable Connect on the pages you want to create a template for. Any more customization would require changes to the code.