Hi guys,
I need support for the following:
I have all together 6 sidebars. 4 of them are serving specific sections of the site, and 2 of them are serving other sections of the site that are woocommerce/shop related.
I use a simple wordpress page as a “home page” of the shop section (domain.com/магазин/), and that page is built up using visual composer under Pages.
I see in the admin panel of the theme that there’s an option to enable sidebar for Shop Home page + Shop Archives (this is part of the integrated to the theme woocommerce options). All good on shop category/archive pages because they use a standard template for products, but the activated sidebar breaks the design of our shop’s “home page” (domain.com/магазин/).
Note: the sidebars displayed on the shop home page and shop archive pages are different.
I need to stop that specific sidebar (or any other) from rendering on the shop’s “home page” (domain.com/магазин/), but I need to keep showing all other sidebars on the respective pages.
I’m unable to choose whether to use a sidebar under the options of the shop’s home page itself.
Also, if I choose not to show a sidebar on the home + archives shop sections by default (from the theme’s panel options), I’m unable to activate any sidebar under the options of the archive (woocommerce) pages even opening them manually one by one, no options.
Any help will be greatly appreciated.
Thanks
Hello,
Please contact us via email at contact@tagdiv.com and provide a link to your site and wp-admin so we can login and investigate how the sidebars break the layout. Please also include a link to this topic so we can identify you.
Thanks.
Hi Bogdan,
thank you for your reply. Before we dig deeper in the admin panel and I take more from your time, let me try to explain once again. Hopefully we can solve the issue easier.
Only one of the sidebars breaks the design of only one page – the shop home page (domain.com/магазин/). But actually, I don’t need a sidebar on it at all. I need to disable the sidebar on that page. It shouldn’t load at all, not just hidden.
The name of the sidebar that appears is: td_demo_sidebar_cat-tag-woo
The page in question is: domain.com/магазин
All other sidebars are working correct on the respective pages.
Hope that helps.
Then you should simply disable the woocommerce sidebar from here: https://www.screencast.com/t/zFyBSCExMI but you will not be able to do so only for the shop exclusively.
An elegant solution I can see here is to create a custom shop page in visual composer or tagdiv composer (whichever you prefer) and then set it as the shop page like so: https://www.screencast.com/t/JiDdzGYt
Thank you!
I can’t disable the sidebar in the theme panel Shop home page + Shop Archives (that you showed above) as I will lose the place for widgets on Shop Archives(product category, product tag) pages.
As I mentioned, my shop home page (domain.com/магазин/) is made using visual composer (the same way you suggested). But when I enable a design with sidebar from the theme panel, the sidebar appears on all Shop Archives and on the Shop home page (even made custom made as a page) too ( bit.ly/2g27B2E ).
Thanks
Hi,
You could maybe create a condition where the sidebar is called, to not display it on the shop page only
– https://www.screencast.com/t/CKWIy0y5LS5
Try something like this and see if it works
– https://www.screencast.com/t/9NR8zcdv9eK
Or maybe you could hide the sidebar with some CSS on the shop page only
– https://www.screencast.com/t/P209TUSDi
Try this code
.post-type-archive .td-main-sidebar {
display: none!important;
}
Thanks
Hi Simion,
nice to see you again and thank you for your reply!
My archive-product.php looks different:
https://www.dropbox.com/s/qi9lqdqxo176que/archive-product.php?dl=0
Regarding the second suggestion – it is not a good solution as the sidebar displays first and then disappears which will look weird to the visitors..
Thanks