• 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

Modern Portfolio Change Nav Tab Color

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 › Modern Portfolio Change Nav Tab Color

This topic is: not resolved

Tagged: modern portfolio, NAV bar, tab color

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 8 months ago by alison.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 25, 2013 at 9:24 am #31121
    alison
    Member

    I've looked online and in the forum, but still haven't figured out how to change the tab color background and text to show the current location.

    Here's my site: http://www.thesocialom.com

    I would like to the following options:

    Matching style of a hover to the green background and white text or
    Simply changing the text color

    Thanks!

    Alison

    March 25, 2013 at 12:18 pm #31144
    David Chu
    Participant

    Hi, Some CSS changes needed to do that.
    Here's the code that handles the hover:

    .genesis-nav-menu li a:hover, .genesis-nav-menu li li a:hover {
      background-color: #A6D045;
    }

    I added a bit to have the current item have that same background. I coded this quickly by looking at your HTML, so it would need to be checked, but it should work. See how it addresses the current stuff:

    .genesis-nav-menu li a:hover, .genesis-nav-menu li li a:hover, .genesis-nav-menu li.current-menu-item {
      background-color: #A6D045;
    }

    For changing the link color, you could add a color line to this. I stuck a color line there as an example - blue is probably not optimal, so you'd need to replace that. 🙂 I actually wouldn't change the color myself.

    .genesis-nav-menu a {
      display: block;
      padding: 1.5rem 1.25rem;
      position: relative;
      color: blue;
    }

    And adjust to taste. Hope that helps!
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    March 25, 2013 at 1:04 pm #31155
    alison
    Member

    David,

    Yaaaay! You're great! I appreciate your taking the time to  respond.

    Thanks so much - I was trying *everything* I could think of, looking at other code additions - none worked.

    And yours did. 🙂

    Alison

    March 26, 2013 at 6:52 am #31288
    alison
    Member

    Hi David,

    .genesis-nav-menu li.current-menu-item  {
    background-color: #a6d045;

    Worked perfectly for the current tab color, but I wanted to also change the font color of the current menu item to white.

    I tried doing same under font color section with the related li hover and li li hover code, but that didn't work.  There may a conflicting code setting I would also need to change - or use a different snippet all together.

    Thanks.

    Alison

     

    March 30, 2013 at 2:41 pm #32133
    alison
    Member

    In case this may help others, I found the other half of the solution via another forum.

    My theme was missing the following code to change nav bar tab and text to indicate current location:

    .genesis-nav-menu .current-menu-item a {
    color: #XXXXXX;
    background-color: #XXXXXX;
    }

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

© 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