• Resolved karrinemcfarlane

    (@karrinemcfarlane)


    I can’t link to the page as it is a class assignment on my computer at the moment.

    I have changed the menu color and hover color but cant seem to figure out how to switch the current (or active page) color from the default colour of the theme.

    I have read through over 20 other threads but the only deal with changing the colour and hover not the a:active setting- which sin’t a:active (possibly because there is a class for active somewhere). Please help I have a deadline today to get this done for an assignment. (we are allowed to research and ask for help ??

    -Thanks Karrine

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It isn’t ‘a:active’ because that means something completely different in CSS. You need to look at the class being applied to the element when it is selected and then simply override it.

    To look at the class try using a browser developer tool like the one that’s built into Chrome. Right click on the active link and press “Inspect element”. A new toolbar will appear with 2 panels, one on the left with HTML and the other on the right with CSS. If there is CSS applied to the link then it will appear in the right-hand panel. That’s where you look to find the CSS to override.

    Chrome’s developer tool: https://developer.chrome.com/devtools#dom-and-styles

    Just copy the CSS that is applied and paste it into your ‘Additional CSS’ area of the dashboard and change it there: https://codex.www.ads-software.com/CSS#Custom_CSS_in_WordPress . This will override the theme’s CSS with your changes.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try this:

    
    .navigation-top .current-menu-item > a, 
    .navigation-top .current_page_item > a {
        color: red;
    }
    
    Thread Starter karrinemcfarlane

    (@karrinemcfarlane)

    Thank you Andrew ??

    This worked .. .
    navigation-top .current-menu-item a {
    color: #C3E0E6;
    }
    ——- I couldn’t locate the current menu class – thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu Current /active page color’ is closed to new replies.