I’m looking for a way to display a different sidebar/widget on Woocommerce product pages depending on which category the product is in. For example, products in Category A will display Widget 1, products in Category B will display Widget 2, etc…
I used to be able to do this with my previous theme using the WooSidebars plugin, but it doesn’t seem to work in BB. Instead, I get the content the Woocommerce Sidebar widget area regardless of what product or category is being viewed, even when the WooSidebars plugin is activated and configured.
Is there a way around this? Still loving your product!
I got it working on my local here. As you might already know, the Beaver Builder Theme has its own WooCommerce Sidebar. So when creating a new Widget Area, after selecting the category under Taxonomy Terms > Product Categories make sure to replace the WooCommerce Sidebar, not the Primary Sidebar. If you need further assistance, we may need temporary admin access to your site(you can do a private reply).
Actually, one more question: Some of my WC products don’t require a sidebar. Is there a way to default to a “no sidebar” layout when the widget area for that product or category is empty?
It would seem that the only way to do that is via CSS. When on a certain category, WooCommerce adds a specific class to the body. You can target that then set the .fl-content to 100% and hide the .fl-sidebar.