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 ^^
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it