• 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

Drop Down Menu – options disappear before I can get my mouse to them

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 › Drop Down Menu – options disappear before I can get my mouse to them

This topic is: not resolved

Tagged: drop down, hover, menu

  • This topic has 5 replies, 4 voices, and was last updated 5 years, 1 month ago by shubhkr.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 23, 2016 at 9:20 am #186133
    JC2
    Member

    Hello,

    On http://www.hepper.com/ the top nav menu items have some drop down options, but you'll notice that as soon as you move the mouse off the top level, the drop down will disappear again.

    I've dug around to try to understand this function but haven't gotten a good grasp yet. Is there a setting/code to increase the area that activates the hover zone? Or to increase the menu open time (a delay before disappearing) somehow? Or a more simple way to make the drop down function properly?

    It was working, but in some update or plugin deactivation recently, the dropdown stopped working.

    Any advice?

    Thanks!

    http://www.hepper.com/
    May 23, 2016 at 9:37 am #186134
    JC2
    Member

    I'm guessing that this is the relevant code:

    /*

    Site Navigation

    ---------------------------------------------------------------------------------------------------- */

    .genesis-nav-menu {

    clear: both;

    color: #fff;

    font-size: 14px;

    font-size: 1.4rem;

    font-family: 'Roboto', sans-serif;

    font-weight: 400;

    line-height: 1.5;

    width: 100%;

    }

    .genesis-nav-menu .menu-item {

    display: inline-block;

    text-align: left;

    }

    .genesis-nav-menu a {

    border: none;

    color: #fff;

    display: block;

    font-size: 14px;

    font-size: 1.4rem;

    font-weight: 300;

    letter-spacing: 1px;

    letter-spacing: 0.1rem;

    padding: 20px;

    padding: 2rem;

    position: relative;

    }

    .genesis-nav-menu a:hover,

    .genesis-nav-menu .current-menu-item > a,

    .genesis-nav-menu .sub-menu .current-menu-item > a:hover {

    color: #ff9046;

    }

    .genesis-nav-menu > .menu-item > a {

    text-transform: uppercase;

    }

    .genesis-nav-menu .sub-menu {

    left: -9999px;

    letter-spacing: 0;

    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: 225px;

    z-index: 99;

    }

    .genesis-nav-menu .sub-menu a {

    background: #444;

    padding: 10px;

    padding: 1rem;

    position: relative;

    width: 225px;

    }

    .genesis-nav-menu .sub-menu a:hover {

    }

    .genesis-nav-menu .sub-menu .sub-menu {

    margin: -54px 0 0 159px;

    }

    .genesis-nav-menu .menu-item:hover {

    position: static;

    }

    .genesis-nav-menu .menu-item:hover > .sub-menu {

    left: auto;

    opacity: 1;

    }

    .genesis-nav-menu > .first > a {

    padding-left: 0;

    }

    .genesis-nav-menu > .last > a {

    padding-right: 0;

    }

    .genesis-nav-menu > .right {

    display: inline-block;

    float: right;

    list-style-type: none;

    padding: 20px 0;

    padding: 2rem 0;

    text-transform: uppercase;

    }

    .genesis-nav-menu > .right > a {

    display: inline;

    padding: 0;

    }

    .genesis-nav-menu > .rss > a {

    margin-left: 48px;

    margin-left: 4.8rem;

    }

    .genesis-nav-menu > .search {

    padding: 6px 0 0;

    padding: 0.6rem 0 0;

    }

    /* Site Header Navigation

    --------------------------------------------- */

    .site-header .sub-menu {

    }

    .site-header .sub-menu .sub-menu {

    margin-top: -55px;

    }

    /* Primary Navigation

    --------------------------------------------- */

    .nav-primary {

    background-color: #333;

    }

    .nav-primary a,

    .nav-primary .genesis-nav-menu .sub-menu a {

    color: #fff;

    }

    .nav-primary .genesis-nav-menu .sub-menu a {

    background-color: #333;

    border: 1px solid #444;

    border-top: none;

    }

    .nav-primary .sub-menu a:hover {

    color: #FF6600;

    }

    /* Secondary Navigation

    --------------------------------------------- */

    .nav-secondary {

    margin-bottom: 20px;

    margin-bottom: 2rem;

    }

    .site-footer .nav-secondary a {

    color: #fff;

    margin: 0 30px;

    margin: 0 3rem;

    padding: 0;

    }

    .site-footer .nav-secondary a:hover {

    color: #999;

    }

    .site-footer .nav-secondary .genesis-nav-menu .sub-menu a {

    background-color: #333;

    border: 1px solid #444;

    border-top: none;

    padding: 16px;

    padding: 1.6rem;

    }

    .site-footer .nav-secondary .sub-menu a:hover {

    color: #FF6600;

    }

    May 23, 2016 at 3:59 pm #186151
    Christoph
    Member

    Hi,

    you can try increasing the z-index in .genesis-nav-menu .sub-menu
    (100 worked for me)


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    May 23, 2016 at 5:00 pm #186155
    Victor Font
    Moderator

    I agree, increasing z-index will fix the problem. Also, you have a jQuery error that could cause other problems: ReferenceError: WPGroHo is not defined


    Regards,

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

    May 24, 2016 at 9:03 am #186185
    JC2
    Member

    Many thanks @Christoph and @Victor Font! the z-index seemed to work. I'm now digging into the jQuery error...

    January 31, 2018 at 6:04 am #215904
    shubhkr
    Member

    Thank you guys.

  • 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

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