Jump to content

Force Hamburger Menu on Desktop on a SINGLE Page only

Recommended Posts

  • Replies 3
  • Views 772
  • Created
  • Last Reply

Top Posters In This Topic

On 10/27/2021 at 4:13 AM, toripintar said:

Site URL: https://www.mountainprojectmt.com/train-anywhere-sign-up

I've been trying to figure out a way to make this page have a hamburger menu at all screen sizes but leave the rest of the pages alone. I can't quite figure it out. Anyone done this before?

 

Add to Design > Custom CSS

/* Signup page */
body#collection-6011c4c2a22b9e18b7d995d5 {
@media screen and (min-width:768px) {
 /* 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 6 months later...
On 5/17/2022 at 12:29 PM, tillie said:

@tuanphan thank you for sharing this - the code works great! I am wondering if there is a way to reduce the size of the gaps between the menu items?

https://franklywrite.squarespace.com/home

password - FWweb1

 

Add to Design > Custom CSS

@media screen and (min-width:768px) {
div.header-menu-nav-item a {
    margin: 5px;
}}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.