Some category not show brand in layered navigation

This topic has 6 replies, 3 voices, and was last updated 10 months ago ago by Andrew Mitchell

  • Avatar: Ugo Dionisio
    Ugo Dionisio
    Participant
    February 20, 2024 at 11:14

    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

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2024 at 13:20

    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

    Avatar: Ugo Dionisio
    Ugo Dionisio
    Participant
    February 20, 2024 at 16:21

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2024 at 17:03

    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

    Avatar: Ugo Dionisio
    Ugo Dionisio
    Participant
    February 23, 2024 at 18:50

    Ok thanks
    Best Regards

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 23, 2024 at 18:51

    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

  • Viewing 6 results - 1 through 6 (of 6 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.