Change single menu item disabled

I have enabled CSS in the menu, but I did not get the result. Why? I have enabled :piangere:

I added this manual code in the custom CSS, but this does not work for mobile :pensiero:
and I do not even want the sub-menu items in italics.

li#menu-item-325 a {
font-style: italic;
}
li#menu-item-176 a {
font-style: italic;
}

Thanks for the support!

Hi There,

Please use this CSS instead of above.

li.menu-item-325 > a {
font-style: italic;
}
li.menu-item-176 > a {
font-style: italic;
}

It will make sure submenu won’t italic and will work in mobile too.

Thanks

it works like this:

li#menu-item-325 > a {
font-style: italic;
}
li#menu-item-176 > a {
font-style: italic;
}

mobile does not work!

I’m not clear, because it does not work automatically with the menu option.
Thanks!

Hi there,

i could see that you have added the class uniqueclass to the menu item. So you can do it this way:

.uniqueclass a span {
    font-style: italic;
}

Hope this helps.

Now works. Thanks! :smiley: But I have also the sub-menu items in italics :expressionless:
Use this CSS and I have the result:

.uniqueclass > a span {
font-style: italic;
}

it’s correct?

Hi there,

Yes you got it right. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.