Conditionally display sidebar in WooCommerce theme

[ad_1]

Howdy ya’ll,I have a feeling this question has been asked a thousand times, but my Google-fu is weak and I’m stumped – how does one go about getting the sidebar to show (or *not* show) on specific pages?

I have a website I’m working on for a client and they want the sidebar to show on the Posts and single post pages *only*. I’ve tried a handful of plugins that claim to do this, with no luck – WooSidebar, Context Aware Sidebar, a few others. The shop page of the theme does not seem to allow/support changing it to a “full width” layout; additionally, giving the theme’s docs the once-over doesn’t seem to provide the relevant info.

I’ve found a few solutions that require code changes to the template files, but I would like to avoid modifying the theme code as it is a first-party WooCommerce theme and want to keep maintenance simple.

Any other suggestions?

Site details:

* WordPress: 6.0.1
* WooCommerce: 6.8.2
* Theme: [Homestore 2.0.34])

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer