Jump to content

Customize Mobile Menu Squarespace with Code

Go to solution Solved by Lesum,

Recommended Posts

Hi, 

 

https://grouse-maracas-fc4g.squarespace.com/work
Site password: birgit 

I would love to know how to customize the mobile menu I have on the website listed above. 

01. I would like to make the fontsize smaller 
02.  I would like to space the links further apart vertically
03. I would like to align the navigation with the bottom of the mobile screen (with same padding as the other elements on top) in stead of in the middle.
04. I would like make the height of the menu (logo + hamburger icon) smaller so the padding left and right around the site is the same as on top. 

Thank you in advance!
Have a nice day,

Kristel 

 

Edited by SOMEKINDstudio
Link to comment
  • Replies 2
  • Views 210
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

@SOMEKINDstudio Hi! Add this code under Website > Pages > Website Tools > Custom CSS 

@media screen and (max-width: 1024px) {
	// font-size smaller and spacing between links
	#header .header-menu-nav-item a {
		font-size: 15px !important;
		padding-bottom: 10vw !important;
	}
	// align navigation at the bottom
	#header .header-menu-nav-folder-content {
		justify-content: flex-end !important;
	}
	// reduce menu height
	#header .header-announcement-bar-wrapper {
		padding-top: 3.5vw !important;
	}
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.