[Resolved] Italicize items in menu when selected

Home Forums Support [Resolved] Italicize items in menu when selected

Home Forums Support Italicize items in menu when selected

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1102663
    CRISTO

    Currently all the links on may pages turn to italics when I scroll over them….got the css from you and it works great:

    .site-content a:hover {
    font-style: italic;
    }

    To be consistent, I would like to do the same thing with the items in my menu. I assume a variation of the above would do it?

    #1102694
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .main-navigation .main-nav ul li a:hover {
        font-style: italic;
    }
    #1103350
    CRISTO

    Thanks, Leo..that doesn’t seem to work. Perhaps I am over-riding it with some other css? I try not to use any css unless you guys give it to me….don’t want to blow everything up!

    #1103435
    Leo
    Staff
    Customer Support

    That CSS should definitely work but I’m not seeing it being added.

    Have you tried clearing your caching plugins or any server cache?

    #1103511
    CRISTO

    Yes, I cleared everything. May not be that important, since when I scroll over one of the current links it changes color and becomes underlined. So that may be enough for now.

    #1103517
    Leo
    Staff
    Customer Support

    The CSS should absolutely work. Maybe you have a syntax error somewhere in the CSS which stops the code below the error from working.

    What happens if you put the my CSS at the top of your CSS file?

    #1103547
    CRISTO

    Hi Lleo, I took your advice and put the css at the top of the file…..works perfectly. I know next to nothing about css, so not sure what my problem was, but it works so that’s all I care about.

    #1103552
    Leo
    Staff
    Customer Support

    The reason I explained here is likely the cause:
    https://generatepress.com/forums/topic/italicize-items-in-menu-when-selected/#post-1103517

    Glad it’s working.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.