Home › Forums › Basel support forum › Expanding Parent Categories In Widget
Expanding Parent Categories In Widget
- This topic has 7 replies, 2 voices, and was last updated 7 years, 12 months ago by
Artem Temos.
-
AuthorPosts
-
May 1, 2017 at 6:52 am #13022
netbaron00ParticipantForgive me for asking this question, I tried to search the other posts and that almost came up with a solution.
I have the “woocommerce product categories” option active on the “shop page widget area” and the “main widget area”.
Is there a way to have only the current category the visitor is on be expanded to show the children subcategories in that area?
I located this code you provided in another solution:
.categories-accordion-on .widget_product_categories .current-cat-parent .children, .categories-accordion-on .widget_product_categories .current-cat .children { display: block!important; }
However this expands every category that has a child sub-category (instead of just the one that is currently being viewed)?
Thanks for any help or direction you can provide!
May 1, 2017 at 7:01 am #13023
Artem TemosKeymasterHello,
As we can see, it works well for you and display subcategories of the current one https://gyazo.com/c22fdf70b36d55f541db00ad5c0b1df1
Could you please send a screenshot of how it should work?Regards
May 1, 2017 at 7:23 am #13024
netbaron00ParticipantWhat happens in the current state is that if a menu is broken down by (once expanded):
Main Cat
– Sub 1
– Sub 2when a user clicks on Sub 1 or Sub 2 the page will reload (as it should) and that current menu primary “Main Cat” will show active by changing color, but will also fully collapse.
I would like the user to see all the options under the Main Cat, so the menu would still display as:
Main Cat
– Sub 1
– Sub 2At that point the “Main Cat” would still display as active with the color change, and the sub category without collapsing down.
Attachments:
You must be logged in to view attached files.May 1, 2017 at 8:42 am #13031
Artem TemosKeymasterBut it works in the way you describe it for us https://gyazo.com/fce7003f455a3f19472cdaae46529152
May 1, 2017 at 7:29 pm #13056
netbaron00ParticipantEach time you clicked on a category or subcategory the entire navigation collapsed.
I would like to to stay open without having to toggle. I have attached a picture, sorry for my lack of explanation.
Attachments:
You must be logged in to view attached files.May 1, 2017 at 7:41 pm #13059
Artem TemosKeymasterSorry, but it can work for the first level only. It can’t be changed with CSS.
May 1, 2017 at 9:25 pm #13062
netbaron00ParticipantAh – gotcha. Well thanks for the heads up. I’ll post the solution for others once I get it figured out!
May 2, 2017 at 8:11 am #13066
Artem TemosKeymasterOK, you are welcome!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register