• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Help with CSS for Primary Nav Menu font color when on sub-page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Help with CSS for Primary Nav Menu font color when on sub-page

This topic is: not resolved

Tagged: nav font color changes

  • This topic has 6 replies, 3 voices, and was last updated 8 years, 11 months ago by AlAnthony.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 22, 2017 at 12:50 am #208060
    AlAnthony
    Member

    I am using the Executive Pro Theme Red version on a development site. I am trying to come up with the CSS that will globally change the default font color of a main nav menu item to another color when a user is on a sub-page of that menu item ie. the default main nav menu item font color is gray but when a user is on a sub-page of that main menu item, the main nav item font color is red.

    The only way I can see to do this is to create CSS for each individual sub-page that governs the main nav font color when a user is on that page. This is tedious.

    Is there a more global way to do this?

    June 22, 2017 at 5:09 am #208065
    Victor Font
    Moderator

    You use the global color for the entire site and then customize the home page only. Executive Pro includes the body class of .home for the home page only. Any custom home page colors should be inserted into style.css after the global color and precede any directives with .home. As an example:

    .home .genesis-nav-menu {
        color: #666;
        font-size: 14px;
        font-size: 1.4rem;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 22, 2017 at 3:29 pm #208120
    AlAnthony
    Member
    This reply has been marked as private.
    June 22, 2017 at 7:40 pm #208141
    Victor Font
    Moderator

    Private replies are not visible to anyone.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 22, 2017 at 8:21 pm #208147
    AlAnthony
    Member

    Sorry about that. Thanks for the suggestion, Victor.

    However, this doesn't solve the problem. If someone is on services > new homes page, the services nav item font remains grey - the default color. I need this to change to red.

    See here.

    Do you have any further suggestions?

    June 22, 2017 at 8:29 pm #208149
    ᴅᴀᴠɪᴅ
    Member

    Yes, there is a class for this automatically added by WordPress. 'current-menu-ancestor'.

    So, adding;

    .executive-pro-red .genesis-nav-menu .current-menu-ancestor a {
        color: #e04b4b;
    }

    will do what I think you want.


    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    June 22, 2017 at 9:04 pm #208150
    AlAnthony
    Member

    Dave, you hit the nail on the head! Works beautifully! Thanks.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble