How to make Spotlight Categories filter not multiple

This topic has 5 replies, 3 voices, and was last updated 5 months, 3 weeks ago ago by Tony Rodriguez

  • Avatar: Dabbas
    Dabbas
    Participant
    May 12, 2026 at 19:38

    I modified the Products Archive template and added a categories widget named “Spotlight Categories” and “Products Grid”, now the filtering is working when I click on a category but it’s appending the categories not replacing, for example:
    I clicked on Cat A, I see in the URL it’s ‘…?filter_cat=cat-a’ , then I clicked (on the new cat A page) on Cat B, the parameter will become: ‘…?filter_cat=cat-a,cat-b’ .. It appends the filters, I need it to replace cat-a filter with cat-b, how can I do this ?

    4 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 13, 2026 at 06:49

    Hello @Dabbas,

    Please insert the following snippet into your child-theme/functions.php file:
    add_filter('etheme_dynamic_categories_filter_cat_merge', '__return_false');

    Should you require further assistance or have any questions, please do not hesitate to contact us.

    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: Dabbas
    Dabbas
    Participant
    May 13, 2026 at 07:14

    It’s working, thanks, but I think this should be part of the widget it self.

    Avatar: Dabbas
    Dabbas
    Participant
    May 13, 2026 at 07:14

    Thanks for the support! My topic “How to make Spotlight Categories filter not multiple” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    May 13, 2026 at 07:14

    Dear Dabbas,

    Thanks for being part of our WordPress & WooCommerce community!

    We’re happy we could assist you. Your feedback truly matters — it helps us make XStore better, faster, and more reliable with every release.

    Together, we’re shaping a better WooCommerce experience for everyone.

    Topic closed.
    The 8Theme Team

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

The issue related to '‘How to make Spotlight Categories filter not multiple’' 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.