Jump to content

Burger Nav Menu on Desktop Not Working on Scroll

Recommended Posts

Site URL: https://heron-snail-244c.squarespace.com/

Hi all!

Ive set my desktop view to collapse into a burger menu when the screen is smaller than 1050px. It works fine unless I scroll at all, in which case the drop down menu is no longer visible when I click the burger. This only happens on desktop, its fine on mobile. Can someone please help? Below is the custom CSS Im using. TIA!

Link is: https://heron-snail-244c.squarespace.com/ (not yet published)
PW is: N3w$ton3

@media screen and (max-width:1050px) {
  .header-nav, .header-actions { display: none!important;}
  .header-burger { display: flex!important;}
  .header--menu-open .header-menu {opacity: 1; visibility: visible; width:50%}
  .header-menu .header-menu-nav a {font-size:1.25rem; padding: 0rem}
  }

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

16 hours ago, kethee said:

Site URL: https://heron-snail-244c.squarespace.com/

Hi all!

Ive set my desktop view to collapse into a burger menu when the screen is smaller than 1050px. It works fine unless I scroll at all, in which case the drop down menu is no longer visible when I click the burger. This only happens on desktop, its fine on mobile. Can someone please help? Below is the custom CSS Im using. TIA!

Link is: https://heron-snail-244c.squarespace.com/ (not yet published)
PW is: N3w$ton3

@media screen and (max-width:1050px) {
  .header-nav, .header-actions { display: none!important;}
  .header-burger { display: flex!important;}
  .header--menu-open .header-menu {opacity: 1; visibility: visible; width:50%}
  .header-menu .header-menu-nav a {font-size:1.25rem; padding: 0rem}
  }

 

Remove your code & add new code

@media screen and (min-width:768px) and (max-width:1050px) {
 /* hide navigation */
    .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
    display: none;
}
/* show burger */
.header-burger {
  display: flex;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
opacity: 1;
visibility: visible;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.