Could some please explain how I remove the sidebar from my woocommerce shop and product pages ( more specifically the ‘archive-product.php’ and the ‘single-product.php’ template files).
I have been struggling with this for a while now and would really appreciate some insight!
Okay, so I’ve added ‘is_single’, and ‘is_archive’ to the ‘roots_display_sidebar’ function, which has indeed removed the sidebar on the shop pages, so thank you!
To continue moving forward I now need to wrap a container div around the the ‘single.php’ and ‘archive.php’ content… can you advise me on the best way of doing that?
And thank you so much for your reply, really appreciate your help
The post @slobich linked to literally contains all the information you need to work with WooCommerce using Roots. Give it a thorough read and don’t forget to check out some of the tips in the recent comments!
Please clarify your questions. Your response to @slobich makes it seem like you’re asking how to add markup to your single.php and archive.php templates but your reply to me seems like you’re still having issues removing the Roots (or WooCommerce?) sidebar.
NB, the post does allude to how the sidebar works in WooCommerce templates. Take a look at the Roots Sidebar docs if you’re confused about that.
Well, assuming that I’m doing this the best way - To clarify my question and following on from my response to @slobich … how do I add markup to the single.php and archive.php files?