Sidebar only for Archive #766
-
I would like to understand the best way to handle this. But if I would like to have it active only in the archives (shop, product category), what do I do? I've seen that some have used a function, but then changed the cell display. Is there a way to upload it only where we want? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Exactly. A simple way is to add widgets to the sidebar and choosing a template without sidebar for posts and pages. But this won't work for WooCommerce. There you have to edit But best way is to use a plugin to handle sidebar widgets contextual instead changing code. It depends if you are on Bootscore v6 or v5. v6 uses block widgets and the only plugin which is able to handle block widgets is https://wordpress.org/plugins/widget-options/ so far. This plugin is active on https://bootscore.me, you can see it in action if you go to blog and shop where different widgets are displayed while the single product page has no sidebar (no widget active). Note that this plugin enables classic widgets on installation and you have to reenable block widgets in plugin settings. This plugin is heavy, but works fine. If you still are on Bootscore v5, then you can use https://wordpress.org/plugins/widget-context/, which does nearly the same as Widget Options, but it is lighter and can only handle classic widgets. Solved? |
Beta Was this translation helpful? Give feedback.
Exactly. A simple way is to add widgets to the sidebar and choosing a template without sidebar for posts and pages. But this won't work for WooCommerce. There you have to edit
woocommerce.php
as described in https://github.com/orgs/bootscore/discussions/630#discussioncomment-7962116.But best way is to use a plugin to handle sidebar widgets contextual instead changing code.
It depends if you are on Bootscore v6 or v5. v6 uses block widgets and the only plugin which is able to handle block widgets is https://wordpress.org/plugins/widget-options/ so far. This plugin is active on https://boot…