Help getting my product categories list menu to collapse
-
Hi everyone!
I would like my category list to collapse like this solution here https://jsfiddle.net/escozul/nrxek35q/30/, which I tried to adapt to my own website.
Unfortunately the HTML/CSS structures are significantly different so I couldn’t do it myself. I managed to, more or less, determine which classes are equivalent to which but, unfortunately, it didn’t quite work.
BASE #sidebar -> #secondary
MAIN CONTAINER .widget_product_categories -> .wc-block-product-categories
MAIN UL .product-categories -> .wc-block-product-categories-list.wc-block-product-categories-list–depth-0
This one I am unsure about since I’ve never used this type of selectors
SECONDARY ULs .children -> .[class^=”wc-block-product-categories-list.wc-block-categories-list–depth-“]
CHILDLESS LI .cat-item -> .wc-block-product-categories-list-itemMy website doesn’t have a ‘cat-parent’ class for LIs that are parents. Is this why it’s not working? The class equivalence seems correct to me.
I know that this is quite a bit of work and tad rude of me to ask for help but, if any kind soul is willing to help or point me in the right direction, I would REALLY appreciate it. This is the very last technical hurdle I need to overcome to start uploading products and launch my site and, unfortunately, I couldn’t find any plugins that took care of it.
Thanks a lot for your time!
- This topic was modified 2 years, 10 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Help getting my product categories list menu to collapse’ is closed to new replies.