Home › Forums › Basel support forum › Parent Category Default Expanded Menu
Parent Category Default Expanded Menu
- This topic has 14 replies, 3 voices, and was last updated 8 years, 1 month ago by Artem Temos.
-
AuthorPosts
-
October 14, 2016 at 3:16 pm #5452
tobidudeParticipantHi There,
is it possible to make the category menu expanded as default?
http://www.miramalas.com/mala-shop/Also it would be good if I am in a category the menu stays expanded.
Thanks for your reply.
October 14, 2016 at 3:44 pm #5454
alexbabeParticipantYeah ! I want the same effect too as this : http://smokium.com/product-category/accessories/
When the sidebar’s product category (parent with sub-cat) is clicked, it stays expanded until you click the another category.
Of course, when you click the sub-cat, it stays expanded too.
Thanks for your help.
October 14, 2016 at 6:36 pm #5458
Artem TemosKeymasterHello,
Thank you for your question.
So you mean to open subcategories dropdown for category that you open? For example if I go to Accessories then in categories menu accessories subcategories will be shown, right?
If yes so this function we will add in the next update.Regards
October 14, 2016 at 6:39 pm #5460
alexbabeParticipantyes, exactly!
smokium.com is the live website you listed in themeforest as demo of basel theme.
is there a way to css to achieve this?
thanks in advance.
October 14, 2016 at 6:46 pm #5463
Artem TemosKeymasterYes, we will add this function in the future.
What exactly do you like about smokium website? Actually there are no any additional CSS code there, only theme settings, images and sliders.
October 14, 2016 at 6:54 pm #5468
alexbabeParticipantthanks for prompt reply.
You mean they (smokium) simply did it in the theme setting to achieve it?If so, how?
Thanks in advance
October 14, 2016 at 8:08 pm #5472
Artem TemosKeymasterWhat exactly you are interested in?
October 14, 2016 at 8:56 pm #5482
alexbabeParticipantoh!sorry for my poor explanation in english.
As you have correctly described above:
So you mean to open subcategories dropdown for category that you open? For example if I go to Accessories then in categories menu accessories subcategories will be shown, right?
This is exactly what smokium.com can achieved.
And I wonder how they can achieve this without any additional CSS code there, as you explained.
October 14, 2016 at 9:59 pm #5483
alexbabeParticipantAs you can see in http://smokium.com
Actually it is a normal “vertical accordion” menu in sidebar. When you go to their shop page “http://smokium.com/shop/”, their sidebar shows all the product categories. Then when you click one of the parent categories e.g. Accessories (main menu):
① its sub-cat dropdown (sub-menu) will be shown up.
② the url become http://smokium.com/product-category/accessories/When you then click one of its child categories e.g. Build Gear (sub-menu):
① the sub-cat dropdown under the active parent “Accessories” is still in place (still being shown up)
② the url become http://smokium.com/product-category/accessories/build-gear/Until you click another parent category e.g. Atomizer:
① the previous sub-cat dropdown of Accessories will be collapsed.
② then the new sub-cat dropdown of Atomizer will be shown up.
③ the url become http://smokium.com/product-category/atomizer/Hope above is good enough to explain what I want to achieve as smokium.com does (also using Basel theme)
FYI, I have done the setup at Appearance > Widgets and added the “WooCommerce Product Categories” in Shop page Widget Area, and ticked “Show hierarchy” already, but no luck. What I can see in my website is not a normal accordion menu. I need to actively click the arrow icon (besides the parent category) to expand the sub-cat menu, and it always collapses when you click something else.
October 14, 2016 at 10:04 pm #5484
alexbabeParticipant.
October 14, 2016 at 10:20 pm #5488
Artem TemosKeymasterThank you for the detailed explanation 🙂
Try to add this code to the Custom CSS area in Theme Settings to achieve this
.basel-cats-toggle { display: none; } .categories-accordion-on .widget_product_categories .current-cat .children { display: block!important; }
Regards
October 14, 2016 at 10:42 pm #5492
alexbabeParticipantThanks so much for your quick response.
It’s very good I can acheive it at 99% by the css code you provided.
The 1% not successful because after I click one of the child categories (sub-menu) under the currently “expanded” parent category, the dropdown collapsed right away 🙁 (even that parent category is still active)
Please help.
October 15, 2016 at 8:48 am #5503
Artem TemosKeymasterTry to replace it with this code instead
.basel-cats-toggle { display: none; } .categories-accordion-on .widget_product_categories . current-cat-parent .children, .categories-accordion-on .widget_product_categories .current-cat .children { display: block!important; }
Regards
October 15, 2016 at 11:57 am #5510
alexbabeParticipantThanks so much!
It works perfectly.Precisely the code should be:
.basel-cats-toggle { display: none; } .categories-accordion-on .widget_product_categories .current-cat-parent .children, .categories-accordion-on .widget_product_categories .current-cat .children { display: block!important; }
because there’s a space inserted in between “. current-cat-parent” 🙁
I have rated Basel with 5 stars in themeforest anyway. Great after sale services and quick response. Keep it on!
October 15, 2016 at 4:42 pm #5517
Artem TemosKeymasterYou are welcome. Thank you for posting the final solution here 🙂
And thank you so much for 5 stars, it is so important for us:)
Regards
-
AuthorPosts
Tagged: category, expanded menu, parent category
- You must be logged in to create new topics. Login / Register