• 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

How change color of current (active) menu-item in primary menu-bar?

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 › How change color of current (active) menu-item in primary menu-bar?

This topic is: resolved

Tagged: active, current menu item, lifestyle Pro

  • This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by Dan-cer.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 12, 2017 at 1:53 am #199256
    Dan-cer
    Member

    Hi,
    In my LifeStyle Pro theme I have set some colors for the primary menu-bar that is positioned above the full-width image-header. The menu-bar has transparent background.

    Color of a menu-item on hover is #00C8FF (~ light blue). I want to set this color for the active item too, but can't find the right line in my style.css.

    I found this code:

    .genesis-nav-menu li:hover > a,
    .genesis-nav-menu a:hover,
    .genesis-nav-menu .current-menu-item > a {
    	background: transparent;
    	color: #00C8FF;
    }

    It is working for hover, but not for active menu-item. I thought "current-menu-item" would the right item to change. But at the moment it is failing.

    When you click on the link and hover on the menu-items, you see all items getting light-blue except "Kontakt" which is remaining white. Instead of white it should be light-blue too.

    Thank you for helping!

    kind regards

    https://official.jungvital.com/kontakt/
    January 12, 2017 at 6:13 am #199264
    Victor Font
    Moderator

    The current-menu-item is correct, but you have the color change too early in your style sheet. The current menu item is being controlled by .lifestyle-pro-blue .genesis-nav-menu .current-menu-item > a at line 1514. Your code is at line 1029. With CSS, the last declaration wins.


    Regards,

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

    January 12, 2017 at 6:37 am #199265
    Dan-cer
    Member

    On that line I have

    .lifestyle-pro-blue .archive-pagination li a,
    .lifestyle-pro-blue .genesis-nav-menu .current-menu-item > a,
    .lifestyle-pro-blue .genesis-nav-menu .sub-menu a,
    .lifestyle-pro-blue .nav-primary a {
    	color: #FFFFFF;
    }

    When I change color there, all items would be blue.
    Have I to clone a part of the code and add the new color like this?
    `.lifestyle-pro-blue .archive-pagination li a,
    .lifestyle-pro-blue .genesis-nav-menu .current-menu-item a {
    color: #00C8FF;
    }

    January 12, 2017 at 11:18 am #199280
    Dan-cer
    Member

    I did it with the code in my last post:

    .lifestyle-pro-blue .archive-pagination li a,
    .lifestyle-pro-blue .genesis-nav-menu .current-menu-item a {
    color: #00C8FF;
    }

    And this is working. Is it correct to clone a part of a code-section?

    January 13, 2017 at 7:29 pm #199354
    Victor Font
    Moderator

    Sure. You can do anything you want with the code.


    Regards,

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

    January 14, 2017 at 1:34 am #199358
    Dan-cer
    Member

    OK, then this topic is solved.
    Thank You!!!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How change color of current (active) menu-item in primary menu-bar?’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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