• 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

Adding a custom class to .current-menu item

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 › General Discussion › Adding a custom class to .current-menu item

This topic is: not resolved

Tagged: custom menu

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by definemedia.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 6, 2015 at 6:34 am #143421
    definemedia
    Member

    Hello,

    I wonder if anyone can help me with something that I am trying to resolve.

    The website I am working on has two menus based on the .genesis-nav-menu functionality.

    One menu requires blue text, just for the static state for which I have added a class called .custom-menu via the core worpdress functionality in the menu section ( this was a great find by the way, from the options menu).

    I am struggling however to apply the custom class to the .current menu item, the hover state seems to work fine but try as I like I can't get it to retrain the black text hover colour text when I navigate away from the menu item.

    Am I missing something really obvious here ?

    .genesis-nav-menu .custom-menu a {
    color: #8FC3DA;
    }

    .genesis-nav-menu .custom-menu a:hover,
    .genesis-nav-menu .custom-menu .current-menu-item > a {
    color: #000;
    }

    Any help greatly appreciated.

    Maria

    http://tka.definemedia.co.uk/
    March 6, 2015 at 6:42 am #143422
    Victor Font
    Moderator

    The class that displays on your upper menu is current_page_item not current_menu_item.


    Regards,

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

    March 6, 2015 at 7:03 am #143423
    definemedia
    Member

    Hi Victor,

    Thanks for the response - I am however struggling to understand where the current_page_item is. When I check it in developer tools the menu reads as.

    .genesis-nav-menu a:hover, .genesis-nav-menu .current-menu-item > a {
    background-color: #fff;
    color: #000;
    }

    Where do i find the css that relates to current-menu_item ...

    Apologies is this is something way too obvious !

    Basically I am trying to gain control over the hover and active states in the blue menu to tweak then a little.

    Many thanks,

    Maria

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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