• Resolved Aksonova

    (@aksonova)


    Hi,

    Is there a possibility to change the color of one of primary navigation lis? WordPress menu classes don’t work in this theme for some reason and I need one of the links in the main menu differ from the others (be red). Is there any way to do so?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    It’s 2am for me so I thought I would follow up here before I enter the land of sleep ??

    Each menu link gets an ID….which you can look at the browser source code view of the page and find the ID on the link. For example, on the live demo for Longevity, the Longevity Blog link has an ID of #menu-item-92. To target that one menu link, you need to customize the link. For example, for red:

    #menu-item-92 a {
        color: #ff0000;
    }

    If the colour doesn’t show up, then add !important at the end like this:

    #menu-item-92 a {
        color: #ff0000 !important;
    }

    If you want a hover colour, then you will need to add another set like this example with a blue link colour on mouseover:

    #menu-item-92 a:hover {
        color: #0088FF;
    }
    Thread Starter Aksonova

    (@aksonova)

    Thanks so much, it worked perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't add menu classes’ is closed to new replies.