Archived topic
How to create category filters like Niche Demo site?
6 replies · Started by David on December 8, 2020
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 :)
I wonder if the first solution here would help?
https://wordpress.stackexchange.com/questions/205297/how-to-get-product-count-with-respect-to-categories-in-woocomerce
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 :)