Archived topic
Niche Demo - Sub Category Issue
3 replies · Started by SLIM on November 29, 2021
Hi there,
I'm trying to use NICHE for the first time.
I have one site im trying to build based on MAKE - MODEL - YEAR sets of product categories.
Naturally, what I'd expect the website to do is...
PICK A CATEGORY (MAKE) > GO TO NEW PAGE
LIST > SUB CATEGORIES (MODELS)
LIST > SUB CATEGORIES (YEAR/SHAPE)
LIST > PRODUCTS
ON NICHE SITE:
https://paste.pics/c83d94f2be374948910a519ab4702d5a
imagine, you picked a MAKE (ford) and under it, it'd just list FALCON / TRANSIT / (1 LEVEL OF SUB CATEGORIES)
then when you click that, in the next page, it'll list the NEXT LESSON of sub categories.
To give you perspective, this is how i have my categories setup:
https://paste.pics/39e0d3fd0ed6648d4f66dc85da0bd56d
Instead this is what i get:
https://paste.pics/1c100a5036ce1433a07b7a69216382d0
When i do FIND FORD: and click it:
https://paste.pics/88c65f4391a68ad0be21a95e77344612
I'm still seeing EVERY LEVEL of sub category under FORD > SUB > SUB
Interestingly enough, when i go into the subcategory: FORD > TRANSIT > it still shows OTHER RANDOM SUBCATEGORIES.
https://paste.pics/27a3d0de43745cfe4ef4f2210cbe173d
When i Enter the final (YEAR / SHAPE) of my category (in this case) - this is how it should setup.
CATEGORY (MAKE) > SUB CATEGORY (MODEL) > SUB CATEGORY (YEAR) > PRODUCTS
Yet... when i enter the final sub category: I still see other sub categories.
https://paste.pics/6bc181c83856e2fd42c33f55e5b4d859
How can i get it to function just like, NICHE THEME. Where only 1 category > 1 level of sub categories > next level etc. etc.
tHANKS
Hi there,
To clarify: You only want to display the subcategory links when you are on a specific category?
If that's the case, replace the code inside Woocommerce Shop Category Menu Hook element found on Appearance > Elements with the one provided here - https://gist.github.com/ejcabquina/066da209083cc5d585ff48979786419c
It's working!
YES!!!
You're awesome.
No problem. :D