Is it somehow possible to add classes to menu items? I would like to style my mobile menu items in different styles:
The first one is the search bar and shouldn't be styled further
The two below that ("New" and "Sale") are technically product classes, but more generic and could use a little more attention
Below that are the actual product categories
Then there are some pages ("Custom", "Quotation", "Contact", "Customer Service") that should be styled differently
The bottom one ("My account") is a whole other thing
I could use some form of "nth-of-type" or just style the actual menu item IDs. Both these options aren't very robust, as I would have to dive into the stylesheet if I add another product product categorie for instance.
On another WordPress website I worked on in the past, a Front-End developer added some Javascript code, which added a field in the menu items, where you could just type in a class and one for an ID. This really helps with styling and button tracking.
Can this somehow be done in Salient right now? If not, I'd like to use this ticket as a feature request for a future update. :)
Is it somehow possible to add classes to menu items? I would like to style my mobile menu items in different styles:
I could use some form of "nth-of-type" or just style the actual menu item IDs. Both these options aren't very robust, as I would have to dive into the stylesheet if I add another product product categorie for instance.
On another WordPress website I worked on in the past, a Front-End developer added some Javascript code, which added a field in the menu items, where you could just type in a class and one for an ID. This really helps with styling and button tracking.
Can this somehow be done in Salient right now? If not, I'd like to use this ticket as a feature request for a future update. :)
Attached files: menu item classes.png
Hey Again,
That is possible using the Native WP Features:
Thanks
ThemeNectar Support Team
Oh wow I never knew this. Thanks! But only classes, no ID right?
Hello again,
Yes, you can only use classes and not IDs.
Thanks,