• 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 background scroll if responsive menu is open

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 › General Genesis Framework Discussions › Disable background scroll if responsive menu is open

This topic is: not resolved

Tagged: background position, jQuery Scroll, responsive menu

  • This topic has 7 replies, 2 voices, and was last updated 3 years, 2 months ago by vissersj.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 6, 2022 at 1:35 am #504964
    vissersj
    Participant

    Is there a code snippet available to prevent background scroll if the responsive menu is open? This is considered an issue if the menu is longer than the mobile screen and you have to scroll all the way down to see the last menu items. In my humble opinion this should be fixed in the Genesis Framework (responsive-menus.js).

    April 7, 2022 at 5:25 am #504968
    Brad Dalton
    Participant

    What theme are you using?


    Tutorials for StudioPress Themes.

    April 7, 2022 at 5:43 am #504970
    vissersj
    Participant

    Thanks for your reply. I use the Navigation Pro theme version 1.2.0.

    April 7, 2022 at 6:33 am #504971
    Brad Dalton
    Participant

    There's a class added when the toggle menu is activated. You can use that with CSS.


    Tutorials for StudioPress Themes.

    April 7, 2022 at 7:23 am #504972
    vissersj
    Participant

    Thanks, but I am not sure how to make it work. The body in the background should be fixed if the toggle menu is activated. I tried the CSS code below, but without luck. Am I on the right track here?

    	.content .menu-toggle.activated,
    	.full-width-content .menu-toggle.activated {
    		overflow: hidden;
    		height: 100%;
    	}
    April 7, 2022 at 7:36 am #504973
    Brad Dalton
    Participant

    All you need to work on now is the CSS. I would look at the CSS for the background.


    Tutorials for StudioPress Themes.

    April 9, 2022 at 7:15 am #505000
    Glofiish
    Participant

    Have you resolved the issue?

    April 9, 2022 at 7:22 am #505001
    vissersj
    Participant

    No I can't figure it out, not skilled enough..

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

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