WordPress.org

Forums

Responsive
[resolved] Stick menu on mobile menu (8 posts)

  1. Jorge A. Gonzalez
    Member
    Posted 2 years ago #

    What is the best way to "stick" the menu on scroll for the mobile menu?

  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

  3. Jorge A. Gonzalez
    Member
    Posted 2 years ago #

    What class/id controls the menu?

  4. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Do you have anything in the dashboard named, "Custom CSS", "Custom Styles" or "Jetpack"?

  5. Jorge A. Gonzalez
    Member
    Posted 2 years ago #

    Na, its a fresh install.

  6. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Download (and install) this Custom CSS Manager plugin and in its allocated section of the dashboard, enter this;

    @media screen and (max-width: 650px) {
     .sb-holder {
      position: fixed;
     }
     .home #wrapper {
      top: 35px;
     }
    }
  7. Jorge A. Gonzalez
    Member
    Posted 2 years ago #

    Why not just do that in the css file?

    Menu sticks, but looks like I need to modify a bit.

  8. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    • When the theme updates, you'll lose your changes
    • Debugging becomes harder as you can't differentiate between your styles and the theme's original styles easily
    • You can potentially harm the theme by modifying its original files

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.