This topic has 6 replies, 3 voices, and was last updated 9 months ago ago by Andrew Mitchell
Hi, i have problem with brand list in category filter
Some category not show brand in layered navigation.
I have attached some images that show the problem.
https://negoziodistrada.com/categoria-prodotto/donna/abbigliamento-donna/giacche-giubbini-e-giubbotti-donna
Thanks
Hello, Ugo Dionisio,
Kindly proceed to insert the following code snippet – Theme Options, then select Theme Custom CSS and add:
.etheme_widget_brands:has(ul):not(:has(li)) {
display: none;
}
If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.
Best Regards,
8Theme’s Team
Hi,
in reality the problem is that the product brands do not appear in the level navigation. I want to view product brands under “filter by brand”. In other categories, brands appear regularly
With this code, however, you simply hide the brand filter when there are no filterable brands
Thanks
Hello, Ugo Dionisio,
The brands on the category page are determined based on conditions to check if there is an intersection of each brand’s product with the category we are currently in (so that the product belongs to both this category and this brand). If these conditions are not met, the specific brand will not be displayed.
We attempted to disable caching for this widget, but it did not yield the desired result. The same applies to other similar types, as shown here: https://prnt.sc/2oHbIQct7Vjh.
The only solution that worked was disabling the caching for the count (although it is global for many widgets), as seen here: https://prnt.sc/SXGhAA0PGonr.
add_filter('woocommerce_layered_nav_count_maybe_cache', '__return_false');
If this solution suits your needs, you can leave it in your xstore-child/functions.php file (we added it there).
Best Regards,
8Theme’s Team
Ok thanks
Best Regards
Dear Ugo Dionisio,
We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.
Click here to rate now: https://themeforest.net/downloads
Thank you sincerely for your ongoing support!
Best Regards,
The 8Theme Team
The issue related to '‘Some category not show brand in layered navigation’' has been successfully resolved, and the topic is now closed for further responses