classify certain menu item
-
Hello Armin,
I try to classify a certain menu item. So I can split the primary menu into two menus.
For example with this code it was possible to move the last child:nav.primary li:last-child {
margin-left: 65px !important;
}But when I try to reach another item with the following code, nothing happens.
nav.primary li#menu-item-27 {
margin-left: 65px !important;
}I also tried to target it with a class which I defined in the Wordpress Menus section.
In this case it worked out. http://www.photosalonhelga.com/Would be nice to get some help
Thanks a lot
Walker
-
I see on the website you sent me you used this css:
"nav.primary li#menu-item-30", you are using the same css style now, so I'm not sure why that wouldn't work.
If you got this online you can send it to me via chat or post ur link here.
Maybe theres some css with invalid syntax in your custom css which invalidates all following css?
-
Thanks for the answer,
When I use "nav.primary li#menu-item-30" it works partly. I see the whole problem now - when I try to give one certain menu-item a margin-bottom –> then the hole Menu will get this margin-bottom. I think I have to seperate the certain menu-item from the others.
On the website I quoted (its not from me) there is also a div with a class around the Button, like this:
<div class="span-wrap">
<span>About<span>
</div>
I think I have to seperate the menu-items to split them completly from the rest of the menu.
Bu thats the part where I get lost...I send you my website on which I work via chat, sorry its kind of confidential.
Thanks a lot, hope that is not to much effort
-
Ok, gonna take a look. I mean in the end what you want is multiple menus. Thats a feature that has been on my list for a long time and I need to work on that ^^
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. When using a WordPress Cache plugin, disable it or clear your cache.
Now see if your problem solved itself.
Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it