• 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

News Pro Navbar Color Confusion

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 › News Pro Navbar Color Confusion

This topic is: not resolved

Tagged: news pro navigation bar

  • This topic has 18 replies, 3 voices, and was last updated 11 years ago by cathy52.
Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • November 15, 2014 at 1:52 pm #131633
    cathy52
    Member

    The site I'm working on for a friend is MyFrenchMen. I want to change the navigation bar color from white to black with a red hover. I've read quite a few other posts with instructions on how to do this but the code I see in the themes function file for this site, doesn't match the code I've seen in instructional posts. For example, below is the code I'm seeing for the primary and sub navigation.

    /* Primary Navigation
    --------------------------------------------- */

    .nav-primary {
    border-bottom: 1px solid #e3e3e3;
    }

    /* Secondary Navigation
    --------------------------------------------- */

    .nav-secondary {
    border-bottom: 1px solid #e3e3e3;

    I see no option to change the navbar colors or hover colors. I'm missing something! Would appreciate it if someone would point me to the proper code to change.

    Thanks!

    http://myfrenchmen.com/
    November 15, 2014 at 2:00 pm #131636
    CleanPageDom
    Participant

    Hi Cathy

    Think you need to add:

    /* Primary Navigation
    ——————————————— */
    
    .nav-primary {
    background-color: #000; /*add black to the background - currently there is no color set*/
    border-bottom: 1px solid #e3e3e3;
    }
    /* Secondary Navigation
    ——————————————— */
    
    .nav-secondary {
    background-color: #000; /*add black to the background - currently there is no color set*/
    border-bottom: 1px solid #e3e3e3;
    }

    Then you'll need to change, I think genesis-nav-menu a to have color: #fff;

    Then find:

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

    and change color to #ff0000.

    Thanks
    Dom


    Let’s build a website together…

    November 15, 2014 at 2:04 pm #131637
    cathy52
    Member

    Thanks Dom! I'll give it a try. Appreciate your help.

    November 15, 2014 at 2:07 pm #131638
    cathy52
    Member

    Sorry, forgot one other thing. The code for changing navbar font to white. Where will I find that?

    November 15, 2014 at 2:08 pm #131639
    CleanPageDom
    Participant

    No problem. There might be an easier way, looking at it now. And you'll need to do something about the dropdowns:
    .genesis-nav-menu .sub-menu a - change background-color: to #000;

    Do you mean like this:
    News Pro header with black background and red hover

    Dom


    Let’s build a website together…

    November 15, 2014 at 2:11 pm #131642
    CleanPageDom
    Participant

    I'm not 100% familiar with the theme, but in Framework it's under "Site Navigation", in there is genesis-nav-menu a and beneath that is genesis-nav-menu a:hover.


    Let’s build a website together…

    November 15, 2014 at 2:13 pm #131643
    anotherusername
    Participant

    Hi there, cathy52:

    You are going to need to edit your style sheet.

    Look for:

    .genesis-nav-menu {
    	clear: both;
     	color: #000;
    	font-size: 12px;
    	font-weight: 600;
    /* --- changing from 1.3 down to 1.2 ------DW --- */
    	line-height: 1.2;
    	width: 100%;
    }

    and try changing the values in there to something like this:

    .genesis-nav-menu {
    	clear: both;
     	color: #fff;
    	font-size: 12px;
    	font-weight: 600;
    /* --- changing from 1.3 down to 1.2 ------DW --- */
    	line-height: 1.2;
    	width: 100%;
    	background-color: #000;
    }
    

    Then look for the following:

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

    and in that area change

    background-color: #000;

    instead to this

    background-color: #cc0000;

    If you want black text, change this part, too:

    color: #fff;

    instead to

    color: #000;

    Hope this helps.

    ~~~~~

    P.S. You have lots of submenu stuff in there, so you will probably have to do something similar for the submenus.

    PPS. Who is DW, and why did he stop working on the site?

    November 15, 2014 at 2:14 pm #131644
    cathy52
    Member

    Okie Dokie, will see what I can get it to do. And yes, I've thought about the dropdowns. Still don't know where to find the code to change font color 🙂

    I used to know what I was doing when working with a studiopress theme. That has all changed!

    November 15, 2014 at 2:18 pm #131646
    cathy52
    Member

    DW is my friend. She stopped working on the site because she became frustrated. I hate the way she initials her changes. And the fact that she didn't copy and save the original code.

    I appreciate your help.

    November 15, 2014 at 2:19 pm #131647
    CleanPageDom
    Participant

    It's all under Site Navigation, I think. All within this part of the style.css:

    /*
    Site Navigation
    ---------------------------------------------------------------------------------------------------- */
    
    .genesis-nav-menu {
    	clear: both;
     	color: #000;
    	font-size: 12px;
    	font-weight: 600;
    /* --- changing from 1.3 down to 1.2 ------DW --- */
    	line-height: 1.2;
    	width: 100%;
    }
    
    .genesis-nav-menu .menu-item {
    	display: inline-block;
    	text-align: center;
    	margin-right: -4px;
    }
    
    .genesis-nav-menu a {
    	border-right: 1px solid #e3e3e3;
     	color: #000;
    	display: block;
    	padding: 10px 24px;
    	position: relative;
    }
    
    .genesis-nav-menu a:hover,
    .genesis-nav-menu .current-menu-item > a {
    	background-color: #000;         
    	color: #fff;         
    }
    
    .genesis-nav-menu > .menu-item > a {
    	text-transform: uppercase;
    }
    
    .genesis-nav-menu .sub-menu {
    	border-top: 1px solid #e3e3e3;	
    	left: -9999px;
    	opacity: 0;
    	position: absolute;
    	-webkit-transition: opacity .4s ease-in-out;
    	-moz-transition:    opacity .4s ease-in-out;
    	-ms-transition:     opacity .4s ease-in-out;
    	-o-transition:      opacity .4s ease-in-out;
    	transition:         opacity .4s ease-in-out;
    	width: 200px;
    	z-index: 99;
    }
    
    .genesis-nav-menu .sub-menu a {
     	background-color: #fff;   
            border: 1px solid #e3e3e3;
    	border-top: none;
    	padding: 12px 24px;
    	position: relative;
    /* --- DW --- adding two following lines; width was already here. ---- */
            text-align: left;
            font-size: 12px;
    	width: 200px;
    }
    
    .genesis-nav-menu .sub-menu a:hover,
    .genesis-nav-menu .sub-menu .current-menu-item > a {
     	background-color: #000;   
    	color: #fff;        
    }

    Had me worried for a sec. My initials are DW, and I definitely haven't been tampering with your site! 🙂


    Let’s build a website together…

    November 15, 2014 at 2:51 pm #131650
    cathy52
    Member

    I would rather you had tampered with it than her! You know, whey you say, "I think" I get a bit nervous.

    November 15, 2014 at 2:53 pm #131651
    CleanPageDom
    Participant

    Ha ha. Sorry. What I mean by that is up until recently I've only used Framework to build sites, so I'm not familiar with the terminology in the other Studiopress themes. But I checked out the style.css file on your site and it is definitely under Site Navigation, just as in Framework, as I copied above.

    Thanks
    Dom


    Let’s build a website together…

    November 15, 2014 at 2:56 pm #131653
    cathy52
    Member

    Thanks for the reassurance. 🙂 Wish me luck, I'm going in!

    November 15, 2014 at 3:52 pm #131669
    anotherusername
    Participant

    Good luck.

    The worst that could happen is that you learn how to do it right!

    Actually, DW did a pretty good job of commenting what the changes were (as far as I could tell with a quick glance.)

    If you want the original code, then look at the original file (you should be able to re-download the theme on your local computer, then you can view the original style.css file).

    Then, use a program like notepad++ (on windows) and install the compare plugin. That will allow you to compare the original file with the modified file side by side. It highlights all the differences.

    I hope this helps. Let us know how you make out with it.

    November 15, 2014 at 3:54 pm #131670
    anotherusername
    Participant

    She stopped working on the site because she became frustrated.

    Hmmm... best to have a plan in advance to avoid getting frustrated, too...

    Sometimes it is the client / friend who is causing the frustration.

    November 15, 2014 at 3:57 pm #131673
    CleanPageDom
    Participant

    Exactly. CSS is kind and doesn't judge you. Worst you can do is undo what you did. Now, if we were dealing with functions.php, that's another story. One misplaced comma and BANG! White screen of death.

    Good luck.


    Let’s build a website together…

    November 15, 2014 at 4:23 pm #131676
    cathy52
    Member

    I like your attitude! And, I am learning. I've always made copies of the original code and then a copy of the changes I made to the original code to compare. For me, that is easier than going through code and looking for initials. I don't know who is more anal, my friend or me.

    I managed to make the changes I wanted to the primary navigation. Now the secondary navigation is a bit wonky. The "home, about" and such aren't showing with a white background with black text any longer. Will get that figured out though. Now that I know my way around a bit better.

    Thanks again for your help.

    November 15, 2014 at 4:29 pm #131677
    CleanPageDom
    Participant

    I see what you mean. You can either search for .nav-secondary - it's a little below Site Navigation, under Secondary Navigation, or, and this is the quicker way that I mentioned earlier, you can add background-color: #000; to .genesis-nav-menu, and this should change the background on both Primary and Secondary.

    You're certainly a lot more organised than me with your changes. I just ride roughshod over everything.


    Let’s build a website together…

    November 15, 2014 at 4:47 pm #131678
    cathy52
    Member

    If I had enough experience and confidence I'd ride roughshod also. I'm going to try adding the background color change as you suggested. Going to quick route first. But a break is needed before I do anything else.

    Thanks!

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