• 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

sub-menu always open

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 › sub-menu always open

This topic is: not resolved

Tagged: javascript, menu, sub menu

  • This topic has 4 replies, 3 voices, and was last updated 5 years, 2 months ago by William.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 8, 2017 at 12:23 pm #213394
    canayou
    Member

    Hello,

    I build my themes from Sample.
    I look a way to have sub-menus always open.

    CSS seems useless for now. Some javascript force opening/closing sub-menus.

    So I need some help for that.

    November 8, 2017 at 2:29 pm #213396
    Brad Dalton
    Participant

    Link to the site with the menu please.


    Get Help – Book Consultation.

    November 8, 2017 at 3:44 pm #213398
    canayou
    Member

    Hi Brad,

    I spoke in general for everytime a Genesis Sample menu with sub-menu is used,
    for example here :
    http://mediationbarreau2.mythemecloud.io

    November 8, 2017 at 6:12 pm #213399
    canayou
    Member

    Hi again,

    Sorry. I think I found the solution all in CSS

    /*Where I worked to make submenus always displaying*/
    .genesis-nav-menu .sub-menu {
      	display: block !important;/* line added */
    	border-top: 1px solid #eee;
    	left: auto; /* modified was -9999px */
    	opacity: 1; /* modified was  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;
    }
    November 9, 2017 at 1:28 pm #213425
    William
    Member

    Hi there,

    Take away the "!important"

    from

    display: block

    And that will fix it.

    🙂


    Genesis Customization Service | Quick fixes whenever you need them ! | Contact me at Fixmysite.com !

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