Skip to content

Commit

Permalink
fix(theme-support): Duplicate sidebar from theme was showing when sto…
Browse files Browse the repository at this point in the history
…refront was enabled

When storefront is active, the sidebar from theme shouldn’t be shown In the store page.
  • Loading branch information
tareq1988 committed Nov 25, 2020
1 parent b96e4b4 commit b4e92d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/ThemeSupport/Storefront.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Storefront {
* The constructor
*/
function __construct() {
add_action( 'storefront_page_after', [ $this, 'remove_sidebar' ], 5 );
add_action( 'woocommerce_after_main_content', [ $this, 'remove_sidebar' ], 5 );
add_filter( 'body_class', [ $this, 'full_width_page' ] );
add_action( 'wp_enqueue_scripts', [ $this, 'reset_style' ] );
}
Expand Down

0 comments on commit b4e92d3

Please sign in to comment.