Jump to content

Remove header only on mobile with custom CSS?

Recommended Posts

Posted

I'm using the Five Template, and I'm having all kinds of problems with my custom header in mobile. Help referred me here and said custom CSS could fix my issue. I know nothing of web design so that's why I'm here.

Is there a way to disable the header all together for my mobile version only? That way I'll only have the Nav Bar at the top?

  • Replies 6
  • Views 11.1k
  • Created
  • Last Reply
Posted

First, see this article on how to use the CSS Editor on your site: https://help.squarespace.com/guides/using-the-css-editor.

Then, simply add this line to the Editor:


@media only screen and (max-width: 640px) { 
    #banner-area-wrapper {display: none;}
}

Note: the max-width property can be adjusted higher if you want to disable the header for tablet sizes as well - typically you'd set it to 1024px instead of 640px.

  • 4 months later...
Posted

Could you post a link to your site?

I'm Colin Irwin aka silvabokis.  I've been a Squarespace designer & developer since 2013. 
You might want to check out my
Squarespace Template Finder or read my Squarespace tips
Speaking of tips, 💲I've got a tip jar. Feel free to throw a few quid into if you think I've helped you. 

If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free  

 

  • 11 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.