Jump to content

Hide hovering homepage thumbnail + hamburger menu on mobile

Recommended Posts

Posted

Hi there,

I am setting up a blog page that I want to be a standalone entity that doesn't include the navigation bar and header thumbnail that typically appear on my website. 

I have been able to successfully hide these elements by adding the following code in Settings > Advanced > Page Header Code Injection:

<style>header, footer, mobile-bar {display:none !important; }
</style>

But when I visit the page on mobile, the elements return. Is there a modified version of the code that will successfully hide them on this blog page (without making them disappear from the other pages on my website)?

Thanks for your help!

Posted

Sorry — should have added: you can view the blog page in draft form at ericmutrie.com/advent

And the rest of my site for context lives at ericmutrie.com

Thanks again!

Posted

Adjust your page code injection:

<style>
  header, footer, .mobile-bar-wrapper {display:none !important;}
</style>

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.