• 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

Disable the responsive menu only for secondary nav

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 › Disable the responsive menu only for secondary nav

This topic is: resolved

Tagged: nav-secondary, paralax pro, responsive menu

  • This topic has 1 reply, 1 voice, and was last updated 9 years, 11 months ago by Latinadeideas.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 22, 2015 at 8:07 am #160092
    Latinadeideas
    Member

    I am trying to disable the responsive only for secondary in paralax pro
    theme.

    I found that you have to modify the js inside the theme, but even if there
    is not nav-secondary declared here, the menu transforms into burger.

    I repositioned the nav-secondary into the header

    here is the jquery detail

    jQuery(function( $ ){

    $(“header .genesis-nav-menu, .nav-primary
    .genesis-nav-menu”).addClass(“responsive-menu”).before(‘

    ’);

    $(“.responsive-menu-icon”).click(function(){

    $(this).next(“header .genesis-nav-menu, .nav-primary
    .genesis-nav-menu”).slideToggle();

    });

    $(window).resize(function(){

    if(window.innerWidth > 768) {

    $(“header .genesis-nav-menu, .nav-primary .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”);

    });

    });

    });

    URL

    http://qacorp.coyote.com/wordpress/

    Child Theme

    Parallax

    ------------------

    http://qacorp.coyote.com/wordpress/
    July 22, 2015 at 8:41 am #160095
    Latinadeideas
    Member

    Hi guys! I figured out.
    I hope this is useful for someone. Just changed the js for this one. Naming only the menu I need to be responsive, it excldes the other menu I placed inside the header.

    it feels good to solve this task!

    jQuery(function( $ ){

    $("header .header-widget-area .genesis-nav-menu, .nav-primary .genesis-nav-menu").addClass("responsive-menu").before('<div class="responsive-menu-icon"></div>');

    $(".responsive-menu-icon").click(function(){
    $(this).next("header .header-widget-area .genesis-nav-menu, .nav-primary .genesis-nav-menu").slideToggle();
    });

    $(window).resize(function(){
    if(window.innerWidth > 768) {
    $("header .header-widget-area .genesis-nav-menu, .nav-primary .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");
    });
    });

    });

  • 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