• 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

Secondary menu with separate class?

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 › Secondary menu with separate class?

This topic is: not resolved

Tagged: executive pro secondary menu, secondary menu styling

  • This topic has 5 replies, 4 voices, and was last updated 12 years, 1 month ago by Stefsull.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 4, 2014 at 2:27 pm #88599
    gagn
    Member

    Using Executive Pro, and have the following question to the CSS-masters out there:
    How do I specify a separate class for the secondary menu? At the moment, it shares class with the primary menu.

    Thanks for all input.

    April 12, 2014 at 8:42 pm #99886
    Susan
    Moderator

    As you asked this a while ago, I hope you were able to get it resolved. If not, check back in, and I will escalate it for you.

    If it is resolved, please mark it as resolved, and I will close it.

    Thanks!

    June 5, 2014 at 11:38 am #108186
    perfect image
    Member

    I would still like to know the answer to this. I have a secondary nav menu that i want to have different styles assigned to other than those for the primary. Cant seem to figure out the css markup to customize the secondary menu. Any help would be greatly appreciated!

    Look at the link: http://www.perfectimagemktg.com/pi2/

    as reference, How do I go about either removing the grey hover on the secondary menu links or change the size of the the grey box hover on the secondary nav links?

    June 5, 2014 at 1:13 pm #108197
    Stefsull
    Member

    Your best bet would probably be to be more specific with those hover classes so they only apply to the main menu. Even though both menus have the same class (.genesis-nav-menu), they're in containers with different classes. The main menu is in the nav container called .nav-primary and the secondary menu is in a nav container called .nav-header.

    By writing styles more specifically you can target the menus separately:

    .nav-primary .genesis-nav-menu { property: value; } - targets only the main menu.

    .nav-header .genesis-nav-menu { property: value; } - targets only the secondary menu.

    However, anything written as .genesis-nav-menu without the modifier class prior to it will apply to both menus.

    If it were me, I'd write the shared styles with the simple .genesis-nav-menu class and divide up the rest with the more specific selectors... rather than trying to override the unnecessary styles with further CSS.

    The rule you need to divide up to get rid of those hovers is this one:

    .genesis-nav-menu li:hover, .genesis-nav-menu a:hover {
    color: FFFFFF; /* this color isn't being applied because it's missing the # (should be #FFF) */
    background-color: #dbdbdb;
    text-decoration: none;
    border-radius: 0.4em;
    -moz-box-shadow: inset 0 0 2px #444;
    -webkit-box-shadow: inset 0 0 2px #444;
    box-shadow: inset 0 0 2px #444;
    }

    Hope that helps...

    June 5, 2014 at 1:31 pm #108199
    perfect image
    Member

    That helped immensely!

    Thank you for thoroughly explaining that....I totally understand now. Very appreciative of the quick detailed response.

    Thank you so much.

    June 5, 2014 at 1:45 pm #108203
    Stefsull
    Member

    Always happy to help on things I'm good at... I'm so new at too much of this WP stuff. 😉

    Cheers

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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