Hi,
my static front page has a vertical nav in the sidebar. I want the first item on the top to serve as heading, not as a real menu item. Therefore in Wordpress menu I deleted the URL for this item.
It's necessary to style this "heading-item" differently than the real menu items below (only five). It should have a different font-family, font-size, font-weight (or bold), font-colour and it should not show any hover effect.
I made some research and found three ways to accomplish this:
a) CSS-class in Wordpress for this item plus CSS-code in CSS-file
b) CSS-Code in CSS-file, but using an ID which my theme automatically asignes.
c) Wordpress menu allows to insert also HTML in the anchor field
"c)" means inline-styling which usually is not recommended, but I don't have to care about cascading/inherited styles ect.
a) and b) are the opposite of c): No inline-styles but always considering possible complications.
I probably will need this kind of "heading-item" often in future, so I'd liked to know what the differences are and may be the best way for this cases. I'm not a big coder, like it simple, safe and reliable.