Jump to content

Mobile menu customize

Recommended Posts

Posted (edited)

I want to change the mobile menu so it 1. has a white background with black text, 2, the pages inside the folders in the menu are hidden unless clicked, like on the desktop site, 3. the font size is much smaller and 4. the menu is minimized unless clicked. And then comes out from the side and not the top. I would also like a hamburger symbol and not “menu” if it is possible.

I managed to change the size and colour, but then the menu just stayed open, and wouldn’t close. I am using the wells template.

This is the code I used, but then the menu just stayed open and you could not click it to close it.

@media screen and (max-width:640px) {
div#mobileNav {
    background: white; height: 450px !important;
}
 
}
#mobileNav li {
a {
                color: hsl(0, 0%, 0%) !important;
                font-weight: 400;
                line-height: 1.3em !important;
}
&.active-link a {
                font-weight: 700 !important;
}
} /* mobile items size */
#mobileNav a {
    font-size: 10px !important;
}

 

Edited by Enol
Posted
On 2/20/2022 at 11:33 PM, Enol said:

I want to change the mobile menu so it 1. has a white background with black text, 2, the pages inside the folders in the menu are hidden unless clicked, like on the desktop site, 3. the font size is much smaller and 4. the menu is minimized unless clicked. And then comes out from the side and not the top. I would also like a hamburger symbol and not “menu” if it is possible.

I managed to change the size and colour, but then the menu just stayed open, and wouldn’t close. I am using the wells template.

This is the code I used, but then the menu just stayed open and you could not click it to close it.

@media screen and (max-width:640px) {
div#mobileNav {
    background: white; height: 450px !important;
}
 
}
#mobileNav li {
a {
                color: hsl(0, 0%, 0%) !important;
                font-weight: 400;
                line-height: 1.3em !important;
}
&.active-link a {
                font-weight: 700 !important;
}
} /* mobile items size */
#mobileNav a {
    font-size: 10px !important;
}

 

Can you share your site with the protected password so we can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

  • 1 month later...
Posted

hello! I'm interested in exactly the same thing - using the code I got the same problems?

how can I solve this? 

www.alexcomansn.com

@media screen and (max-width:640px) {
div#mobileNav {
    background: white; height: 450px !important;
}
 
}
#mobileNav li {
a {
                color: hsl(0, 0%, 0%) !important;
                font-weight: 400;
                line-height: 1.3em !important;
}
&.active-link a {
                font-weight: 700 !important;
}
} /* mobile items size */
#mobileNav a {
    font-size: 10px !important;
}

 

Posted
On 4/24/2022 at 7:58 PM, aaaallleeexx said:

hello! I'm interested in exactly the same thing - using the code I got the same problems?

how can I solve this? 

www.alexcomansn.com

@media screen and (max-width:640px) {
div#mobileNav {
    background: white; height: 450px !important;
}
 
}
#mobileNav li {
a {
                color: hsl(0, 0%, 0%) !important;
                font-weight: 400;
                line-height: 1.3em !important;
}
&.active-link a {
                font-weight: 700 !important;
}
} /* mobile items size */
#mobileNav a {
    font-size: 10px !important;
}

 

With color/background, add this to Design > Custom CSS

div#mobileNav {
    background-color: white;
}
div#mobileNav * {
    color: black !important;
}

 

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!)

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.