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.
Hi,
Thank you for contacting us and I'd be happy to assist.
We have a step-by-step guide on this topic of removing primary sidebar area when working with Genesis child theme and WooCommerce product template here:
https://toolset.com/documentation/user-guides/views/customizing-woocommerce-product-templates-genesis/#but-what-if-we-want-to-remove-the-primary-sidebar-widget-area
Once, you've completed the steps 6-8, the default primary sidebar will be disabled.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
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).
The template coding I have is as follows:
[wpv-add-to-cart-message]
[wpv-woo-product-image]
<h2>[wpv-post-title]</h2>
[wpv-post-body view_template="None"]
[wpv-woo-product-price]
[wpv-woo-buy-options]
<h4>Enquire about [wpv-post-title]</h4>
[contact-form-7 id="112" title="Product Enquiry"]
Would be grateful for help on this matter
Thanks for writing back and Saturday and Sunday are my off-days.
I'll be performing some tests with a similar set up on my test website, to troubleshoot this.
I will share my findings shortly, as soon as this testing completes.
Thank you for your patience.
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.
regards,
Waqar
My issue is resolved now. Thank you!