Jump to content

Remove desktop navigation bar, keep it in mobile

Recommended Posts

Hi, I used CSS to remove the header and footer sections of my site in desktop in order to create my own. I would like to keep the nav bar in mobile in order to have my logo and hamburger icon up top. My code removed the nav bars from both. Is there a way to retrieve the mobile? Thank you. 

Link to comment
  • Replies 10
  • Views 519
  • Created
  • Last Reply

Top Posters In This Topic

@katamb Hi! You can add this code to hide the header on desktop and display it only on mobile:

@media screen and (min-width: 1025px) {
	#header {
		display: none !important;
	}
}

The header design you have underneath the actual header can be created using Squarespace's header with custom code. This approach would require much less code and be easier to edit and update compared to the current method you're using.

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.