• 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 disappears on every page but Homepage?

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 › Mobile Menu disappears on every page but Homepage?

This topic is: resolved

Tagged: mobile menu, winning agent

  • This topic has 1 reply, 1 voice, and was last updated 11 years, 3 months ago by Ben Siegfried.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 3, 2014 at 3:45 pm #93271
    Ben Siegfried
    Participant

    WP 3.8.1
    Winning Agent Pro

    I swapped out the mobile menu that came with Winning Agent with Brad Potter's mobile menu and it shows on the Homepage but won't show on any other page/post. I've used Potter's mobile menu in Agency Pro with no issue at all. What is going on here? I've poked around my CSS and can't seem to find anything or figure out what is missing in CSS. Or maybe it's something else?

    http://coronadoislandrealtors.com/development/
    March 3, 2014 at 5:39 pm #93277
    Ben Siegfried
    Participant
    
    jQuery(document).ready(function($) {
    
      $("#menu-header-navigation").before('<div id="header-menu-icon"></div>');
    	$("#header-menu-icon").click(function() {
    		$("#menu-header-navigation").slideToggle();
    	});
    	$(window).resize(function(){
    		if(window.innerWidth > 1139) {
    			$("#menu-header-navigation").removeAttr("style");
    		}
    	});
    	
    });
    

    The div #header-menu-icon isn't inserting before #menu-header-navigation on any of the site's pages except the Homepage.
    It's like this on the homepage:

    
    <nav class="">
    <div id="#header-menu-icon"></div>
    <ul id="#menu-header-navigation"></div>
    </nav>
    

    And like this on every other page:

    
    <nav class="">
    <ul id="#menu-header-navigation"></div>
    </nav>
    

    The menu is there it just doesn't display because it is set to display:none for the div #header-menu-icon to reveal the menu. If you comment out display:none for that ID the menu will show on all pages, but the #header-menu-icon div isn't there to toggle it to close, or open when it's set to display:none.

    You could rename this div #header-menu-icon almost anything, like "hubeflube" and it won't insert, so I don't think it's a conflict of IDs.

    Why isn't the #header-menu-icon div not inserting for all of the other pages?
    Have any suggestions on what to try?

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