Site logo

Archived topic

How to create category filters like Niche Demo site?

6 replies · Started by David on December 8, 2020

Viewing posts 1–7 of 7

Hi GP team ;)

I want to create a cathegory filters like the "Niche demo site".

But only the category filters, not the off canvas filters.

Is for a restaurant webpage.

For example: Starters, seconds, desserts, drinks, see all.

I found this article https://gpsites.co/niche/how-the-shop-was-made/ and I tried the first Hook but is not working. Is correct?

Thank you so much ;)

Hi there,

Hook #1 should be the solution you are after.

What isn't working when you tried it?

Can you link me to the page in question?

Hi Leo,

I send you the URL. Not it works. I made a mistake with a "Display rules".

The actual setup in Hook element is:

Hook: woocommerce_archive_description
PHP: Execute PHP
Display rules: Producte archive and Product category archive.

Last question. Is possible display a quantity of the products en each category?

For example: desserts (4)

Thanks :)

Yes, it works :)

Thank you

No problem :)

Any chance I can get you to share the final code here? It could be helpful for another user.

Thanks :)

This archived topic is closed to new replies.