How to remove Woocommerce Sidebar
-
Hello there,
I’m using Woocommerce with the Colormag Free Theme. I created a child theme and copied the singe-product.php and archive-product.php to a woocommerce folder in that theme and then removed the call of the function to show the sidebar.
I also edited the functions.php in my child theme folder but I didn’t work neither.
This is how my funtions.php looks in the end
add_action( 'widgets_init', 'wpb_widgets_init' ); function disable_woo_commerce_sidebar() { remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10); } add_action('init', 'disable_woo_commerce_sidebar'); ?>
I’m looking forward to your suggestions.
Kind Regards,
MichaelThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to remove Woocommerce Sidebar’ is closed to new replies.