diff --git a/inc/compatibility/woocommerce.php b/inc/compatibility/woocommerce.php index 7df9bedab2..b3d8ca30d9 100644 --- a/inc/compatibility/woocommerce.php +++ b/inc/compatibility/woocommerce.php @@ -284,7 +284,7 @@ public function register_hooks() { add_action( 'admin_footer', array( $this, 'update_woo_width' ) ); // Wrap content. - if ( function_exists( 'elementor_theme_do_location' ) && ( elementor_theme_do_location( 'header' ) ) ) { + if ( function_exists( 'elementor_location_exits' ) && ( elementor_location_exits( 'header' ) ) ) { add_action( 'woocommerce_before_main_content', array( $this, 'wrap_pages_start' ) ); add_action( 'woocommerce_after_main_content', array( $this, 'wrap_pages_end' ) ); } else {