Site logo

Archived topic

Split menu items into two sections

7 replies · Started by Steig on October 16, 2018

Viewing posts 1–8 of 8

Hello,
I have 5 menu choices in my primary navigation bar. I'd like to split those up so that three of them are on the left side of the page and two are on the right. Can you please tell me how to do that?

Thanks

Hi there,

go to Appearance > Menus - under Screen Options check CSS Classes.
Now select the menu items you want to move to the right and in the CSS Classes field add:

menu-item-float-right

Awesome; thank you

Glad to be of help.

Thanks for this. That worked great. I also used this plugin and was able to use icons in place of text. BUT, how do I change the padding/margin on just the items on the right side so the icons are closer together? Here is my site - https://katevale.com/.

Hi there,

try this CSS, it will close off the space, remove the hover background in place of a little scaling:

.main-navigation ul li.menu-item-type-custom a {
    padding-left: 0;
    padding-right: 0;
    margin-right: 1em;
}
.main-navigation ul li.menu-item-type-custom:hover a {
    background-color: transparent;
    transform: scale(1.1);
}

So amazing! Thanks for the quick response! Love GeneratePress!

You're welcome - glad to be of help :)

This archived topic is closed to new replies.