• 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

Primary Navigation Height

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 › Primary Navigation Height

This topic is: not resolved

Tagged: hover, primary navigation

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 7 months ago by marketme.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 13, 2014 at 8:03 am #127671
    marketme
    Member

    Hello all! I added a <br> to make some of my menu items in my primary navigation into two lines. Now when I hover over a menu item that is only 1 line tall the hover color doesn't extend all the way to the top. Any ideas on how I can adjust this to make them all a uniform height.

    http://michaelmavromates.com/
    Example - hover over Island Search and then hover over Home Search.

    Thanks!

    http://michaelmavromates.com/
    October 13, 2014 at 1:10 pm #127685
    SavvyJackie
    Member

    Hi - very nice website! Menu looks good to me. Have you made a change?


    Web Designer and Developer at Savvy Jackie Designs | Lucky with plants | @SavvyJackie

    Got your question answered here? Please pay it forward by helping someone else. I’m sure there is at least one question you can answer. 🙂

    October 13, 2014 at 1:21 pm #127692
    marketme
    Member

    Hi SavvyJackie, first, thank for the compliment. I did not change the site. It is still showing oddly on the hover. When you hover over a one line link in the nav bar it shows a white box that doesn't extend all of the way to the top as it does with a two line link.

    October 14, 2014 at 7:52 am #127757
    Genesis Developer
    Member

    go to line no 1140 of style.css and modify the current css with this new CSS

    .genesis-nav-menu .menu-item {
        display: table-cell;
        line-height: 1;
        min-height: 76px;
        padding: 18px 0;
        text-align: left;
        vertical-align: middle;
    }

    go to line no 1145 of style.css and modify the current css with this new CSS

    .genesis-nav-menu a {
        color: #fff;
        display: block;
        padding: 0 24px;
    }

    Add this new CSS in the file

    .genesis-nav-menu li.menu-item:hover{
       background: #FFF;
    }

    Hope that this will solve your issue and please mark it as RESOLVED


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    October 14, 2014 at 1:36 pm #127812
    SavvyJackie
    Member

    Give this a try, as I tested it and it works. I had issues after using the suggested code above.

    Add new line in CSS beneath line 1311 under .genesis-nav-menu .menu-item
    vertical-align: top;
    so it looks like this:

    .genesis-nav-menu .menu-item {
        display: inline-block;
        text-align: left;
        vertical-align: top;
    }
    

    Just below there is a block of code like this:

    .genesis-nav-menu a {
        color: #fff;
        display: block;
        padding: 20px 24px;
    }

    Add this code directly below:

    .genesis-nav-menu > li.menu-item > a {
      height:76px;
    }
    .genesis-nav-menu > li.menu-item > a:hover {
    	height:76px;
    }

    Web Designer and Developer at Savvy Jackie Designs | Lucky with plants | @SavvyJackie

    Got your question answered here? Please pay it forward by helping someone else. I’m sure there is at least one question you can answer. 🙂

    October 14, 2014 at 2:59 pm #127820
    marketme
    Member

    Thank you both for the suggestions, I tried but they didn't seem to be working for me. So I went the path of least resistance and made each tab two lines.

    Thanks again, the kindness shown in this community is truly awesome 🙂

    Dana

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

© 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