Skip to content

Commit

Permalink
fix: elementor add template error
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jan 28, 2025
1 parent 5daf52d commit f17dd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/compatibility/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f17dd15

Please sign in to comment.