Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Custom CSS Class for WordPress Custom Menu Re: Custom CSS Class for WordPress Custom Menu

#91369
houseofgrays
Member

Hi guys,

I had to add some custom CSS to my main style.css

#header ul#menu-primary li.menu-item-type-custom a {
padding-right: 3px;
padding-left: 2px;
}
#header ul#menu-primary {
padding-right: 5px;
}
#header ul#menu-primary li.menu-item-type-custom a div.menu-image-link {

background-repeat: no-repeat;
background-position: center center;
width: 28px;
margin-top: -13px;
margin-bottom: -13px;
padding: 13px 0;
}

And then I had to add the following code as the Navigation label for each image:

That seems to have fixed it.

Thanks!