• 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

Responsive mobile menu (button positioning help)

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 › Responsive mobile menu (button positioning help)

This topic is: resolved

Tagged: button, menu, mobile, position, responsive, toggle

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 1 month ago by Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 5, 2016 at 5:11 pm #192663
    ScottReinmuth
    Member

    I want to change the mobile button positioning on a site i am developing. Here is the code I am trying to change.

    
    		if ($( '.nav-mobile' ).length > 0 ) {
    			$( '.nav-mobile' ).before( toggleButtons.menu ); // add the main nav buttons
    		} else {
    			$( '.nav-header' ).before( toggleButtons.menu );
    		}
    

    I trying to make it put the toggle button above a custom header image I have already created when the screen size is mobile and put the toggle button under the header for desktop screen sizes. This is the code now.

    		if ($( '.nav-mobile' ).length > 0 ) {
    			if( $(document).width() > 480 ){
                            $( '.custom-header-logo' ).after( toggleButtons.menu ); // add the main nav button
                        } else{
                            $( '.nav-mobile' ).before( toggleButtons.menu );// add the main nav button             
                        }
    		} else {
    			$( '.nav-header' ).before( toggleButtons.menu );
    		}
    

    Now the problem is that when I change the code to this it looks great. But now the toggle function does not work anymore. Why? I haven't changed any functionality just where the buttons are positioned.

    September 30, 2016 at 10:03 am #193985
    Susan
    Moderator

    I am closing this, as you have marked it "resolved". If you are still having issues, please go ahead and start a new thread.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Responsive mobile menu (button positioning help)’ is closed to new 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