Jump to content

Mobile menu customize

Recommended Posts

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
Link to comment
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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 1 month later...

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;
}

 

Link to comment
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

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.