WORDPRESS – REMOVE WOOCOMMERCE SIDEBAR

167

Here’s another snippet to remove WooCommerce sidebar in all single product pages, category or in specific product page only, sure you can remove the sidebar using CSS code but it’s not the good solution and for me it is ugliest solution out there, so in here we’re using hook, Woo recommended using hook for developer instead of touching or overwriting template file.

Without further ado lets get started.

Single Product Page

Remove sidebar in all single product pages

Specific Product Page

To remove sidebar on specific product page only, just add product ID in IF statement

All Pages

To remove sidebar in all pages including category then use this code instead

Customising the full-width display is not covered in this tutorial.

Leave A Reply

Your email address will not be published.