Home › Forums › WoodMart support forum › Categories Menu in header
Categories Menu in header
- This topic has 12 replies, 2 voices, and was last updated 3 years, 1 month ago by Elise Noromit.
-
AuthorPosts
-
November 3, 2021 at 5:24 pm #329460
danParticipantHi,
I would like to implement the custom code you gave me here in another website i have.
https://xtemos.com/forums/topic/categories-menu-in-header/I paste the code to global css, but didnt work.
I would like to add a scroll to browse categories in header because i have nearly 20.
Thank you!
November 3, 2021 at 9:31 pm #329473
Elise NoromitMemberHello,
If you mean widgets, you do not need this code anymore as there is the option to set this scroll.
You can set the height for the widgets: Height for filters widgets in the Theme settings > Product archives > Widgets and if the widgets quantity generates more height than it is set, the scroll would appear automatically.
If you have any questions please feel free to contact us.
Best Regards
November 4, 2021 at 9:06 am #329542
danParticipantHi,
I did the above but nothing happens.
The Browse Categories in header do not appear a scroll even if i add a height and enable the scroll option on widgets tab in theme options.
Please check screenshots attached here.I miss anything else?
Attachments:
You must be logged in to view attached files.November 4, 2021 at 10:06 pm #329697
Elise NoromitMemberHello,
Please, provide your site admin access (insert the site credentials into the Private content block under the message area).
Best Regards
November 4, 2021 at 10:11 pm #329698
danParticipantdone!
November 4, 2021 at 11:28 pm #329701
Elise NoromitMemberHello,
It works on your site the scroll appears on hover: https://gyazo.com/144c219019bfb4bb783ecf32ca77e1fc
If you have any questions please feel free to contact us.
Best Regards
November 5, 2021 at 6:45 am #329726
danParticipantThese widgets has nothing to do with woodmart. They are based on ajax filter plugin and i customized them based on plugin options.
Again i want the Browse Categories on header to appear a scroll because i have many categories. Just like we did in the old thread i mentioned in my first message.
Thank you.
November 5, 2021 at 10:24 am #329764
danParticipantI also provide photo from widget in case you didnt understand.
Attachments:
You must be logged in to view attached files.November 5, 2021 at 8:09 pm #329852
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.wd-nav-vertical{ max-height: 310px; overflow: hidden; overflow-y: auto; padding-right: 30px; } body .wd-nav-vertical { --scrollbar-track-bg: rgba(0, 0, 0, 0.05); --scrollbar-thumb-bg: rgba(0, 0, 0, 0.12); } body .wd-nav-vertical::-webkit-scrollbar { width: 5px; } body .wd-nav-vertical::-webkit-scrollbar-track { background-color: var(--scrollbar-track-bg); } body .wd-nav-vertical::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb-bg); }
Best Regards
November 6, 2021 at 7:22 am #329891
danParticipantThank you for the code it seems to work but it breaks the megamenu because its not working now.
In Browse Categories in first menu tab i have a megamenu and when i add the code its not opening.If i remove the code, it works ok.
November 6, 2021 at 6:37 pm #329973
Elise NoromitMemberHello,
I am afraid you will need to make the choice: you can have a scroll or mega menu blocks, it is not possible to have both.
If you have any questions please feel free to contact us.
Best Regards
November 7, 2021 at 4:38 pm #330053
danParticipantFor what reason i have to choose?
Why mega menu is not working with the scroll code?November 7, 2021 at 10:02 pm #330088
Elise NoromitMemberHello,
When we add a scroll we have to add overflow: hidden property to the main menu, what makes it impossible to show the mega menu blocks.
Scroll is not possible without this properly. Mega menu is not possible with this property.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register