Skip Navigation

[Resolved] Layout on Woocommerce custom template

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by jillT 4 years ago.

Assisted by: Waqar.

Author
Posts
#1589343

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.

#1589805

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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

#1589845

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"]
#1591357

Would be grateful for help on this matter

#1592295

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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.

#1593853

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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

#1594259

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.