Replies: 0
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,
Michael