• 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

Mobile Menu problem

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 › Mobile Menu problem

This topic is: resolved
  • This topic has 4 replies, 2 voices, and was last updated 10 years ago by JPJP9.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 19, 2016 at 7:15 pm #185926
    JPJP9
    Member

    I have the following jQuery to change the nav to a hamburger on mobile, but the menu starts off open and not closed - its working fine otherwise

    jQuery(function( $ ){
         'use strict';
    	$("header .genesis-nav-menu, .nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu").addClass("responsive-menu").before('<div class="responsive-menu-icon">≡ Menu</div>');
    
    	$(".responsive-menu-icon").click(function(){
    		$(this).next("header .genesis-nav-menu, .nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu").slideToggle();
    	});
    
    	$(window).resize(function(){
    		if(window.innerWidth > 799) {
    			$("header .genesis-nav-menu, .nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu, nav .sub-menu").removeAttr("style");
    			$(".responsive-menu > .menu-item").removeClass("menu-open");
    		}
    	});
    
    	$(".responsive-menu > .menu-item").click(function(event){
    		if (event.target !== this)
    		return;
    			$(this).find(".sub-menu:first").slideToggle(function() {
    			$(this).parent().toggleClass("menu-open");
    		});
    	});
    
    });
    May 22, 2016 at 5:46 pm #186105
    Christoph
    Member

    Hi,

    what theme are you using?
    It would help a lot if you could give us a link to the website in question.


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

    May 22, 2016 at 6:36 pm #186109
    JPJP9
    Member

    www . webtree . com . au / TESTING / civium

    May 22, 2016 at 7:20 pm #186110
    Christoph
    Member

    Hi,

    could you please try removing display: block; from ul#menu-main-menu { ?


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

    May 22, 2016 at 7:52 pm #186111
    JPJP9
    Member

    Awesome. Thank you so much. That worked.

  • 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

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