• 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

Parallax Pro – jQuery Responsive Menu

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 › Parallax Pro – jQuery Responsive Menu

This topic is: resolved

Tagged: jquery, parallax-pro, responsive menu

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by Treefungus.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 6, 2014 at 10:31 am #98725
    Treefungus
    Member

    Hi

    In the responsive-menu.js file in Parallax Pro I find this code:

    $(window).resize(function(){
    if(window.innerWidth > 768) {
    $("header .genesis-nav-menu").removeAttr("style");
    }
    });

    What does this mean exactly? The .removeAttr("style") part means it will remove styling for header .genesis-nav-menu but that does not make sense to me in this example. Besides when resizing the window I am not seeing anything change whether I got this code in or not.

    Responsive icon is display none unless media query is max 768 so what is the above line of code doing?

    Any skilled jQuery users who could explain this to me?

    Thanks in advance!

    April 13, 2014 at 1:40 am #99916
    Sridhar Katakam
    Participant

    Try this:

    Comment out that piece of code.

    Resize the browser down to 768px or below. Now when you increase the width and decrease the width, you should see everything to be fine.

    Now expand the menu by clicking the hamburger icon. Increase the browser width and decrease. Everything should be fine again.

    Now collapse the menu and try increasing and decreasing width. This time the menu would not be visible (at least in my testing).

    If the code is present, this problem will not arise.


    Genesis Tutorials | Follow me on Twitter

    April 14, 2014 at 4:32 am #100144
    Treefungus
    Member

    I just tried and yes that is correct. Can't believe I missed that.

    Thank you for the help.

    Sridhar, you are a great help to the Genesis community.

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

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