I have made a custom product template (woocommerce).
I have set my Genesis child theme to be full width (ie no sidebar)
On the product page at the bottom it is displaying the primary sidebar. It only does this on the woocommerce product page.
It does NOT do this on any other page
It does NOT do this on a custom single post template
You can see the problem on this page: hidden link
Scroll down to the bottom of the page and you will see on the right hand side 'Primary Sidebar Widget Area' That is the problem as it should not be showing.
Thank you, but unfortunately that totally messed up my layout. Whilst it does indeed remove the sidebar, it then proceeds to duplicate the product on the page, within a description tab (which should not be there).
Thank you for waiting, while I performed some tests on my own website.
If you'd like to keep the previous layout, but just remove the sidebar, you can remove the template file that you've added and instead, just add the following code snippet in your child theme's "functions.php" file:
function disable_woo_commerce_sidebar() {
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
}
add_action('init', 'disable_woo_commerce_sidebar');
This worked on my test website and please let me know how it goes.