Skip to content

Commit

Permalink
fix: qa team feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jan 27, 2025
1 parent 1275cb7 commit 5daf52d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 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_theme_do_location' ) && ( elementor_theme_do_location( '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 Expand Up @@ -543,6 +543,10 @@ public function wrap_pages_start() {
if ( ! is_woocommerce() ) {
return;
}

if ( doing_action( 'woocommerce_before_main_content' ) ) {
echo '<main id="content" class="neve-main">';
}
echo '<div class="' . esc_attr( apply_filters( 'neve_container_class_filter', 'container' ) ) . ' shop-container">';
echo '<div class="row">';
}
Expand All @@ -556,6 +560,9 @@ public function wrap_pages_end() {
}
$this->close_div();
$this->close_div();
if ( doing_action( 'neve_before_primary_end' ) ) {
$this->close_div();
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion inc/customizer/defaults/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ private function sidebar_layout_width_default( $control_id ) {
'neve_blog_archive_content_width',
'neve_other_pages_content_width',
'neve_single_product_content_width',
'neve_shop_archive_content_width',
];
$full_width = apply_filters( 'neve_sidebar_full_width_defaults', $full_width );
if ( in_array( $control_id, $full_width, true ) ) {
Expand Down

0 comments on commit 5daf52d

Please sign in to comment.