• 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 menu not working

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 menu not working

This topic is: resolved

Tagged: responsive menu

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago by yashitamittal11.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 13, 2017 at 3:58 am #209049
    yashitamittal11
    Member

    Hello

    My website is hosted at greeninvites.com
    I am using Genesis Sample theme.
    I have added Genesis Responsive slider and done some tweaks to the site-header. After that menu is not responsive.

    Please advice how to make menu responsive again.

    http://greeninvites.com
    July 13, 2017 at 5:18 am #209050
    Victor Font
    Moderator

    You somehow managed to remove the code for generating the responsive menu. It's nowhere to be found in your source code. The responsive.js file is not being loaded either. You also have some code that is changing the responsive menu to something only you would know about: var genesis_responsive_menu = "mgtools_custom_js";

    This is not anything anyone here can help with just from looking at the front end of your site. One of your site-header tweaks broke the code. You'll have to figure out which one did it.


    Regards,

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

    July 13, 2017 at 5:48 am #209057
    yashitamittal11
    Member

    Hello Victor,

    Thanks for the direction.
    I am new to wordpress and in learning stage.
    I wanted to add my custom.js file and mistakenly I added it in responsive-menu code which was not letting the menu to function properly.

    function genesis_sample_enqueue_scripts_styles() {
    
    	wp_enqueue_style( 'genesis-sample-fonts', '//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700', array(), CHILD_THEME_VERSION );
    	wp_enqueue_style( 'dashicons' );
            
    	$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
    	wp_enqueue_script( 'genesis-sample-responsive-menu', get_stylesheet_directory_uri() . "/js/responsive-menus{$suffix}.js", array( 'jquery' ), CHILD_THEME_VERSION, true );
            wp_enqueue_script( 'mgtools_custom_js', get_stylesheet_directory_uri() . "/js/custom.js", array( 'jquery' ), CHILD_THEME_VERSION, true );
            
    	wp_localize_script(
    		'genesis-sample-responsive-menu',
    		'genesis_responsive_menu',
                    <strong>//'mgtools_custom_js',</strong>
    		genesis_sample_responsive_menu_settings()
    	);
            
            //Loading different style sheet after applying customisations for MG Tools
            wp_enqueue_style( 'custom-stylesheet', get_stylesheet_directory_uri() . '/custom.css', array(), CHILD_THEME_VERSION );
    }

    I have commented out that line and menu is now responsive.

    Thanks

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