Jump to content

Hide the mobile menu for a specific page Om template Squarepace 7.0

Recommended Posts

Hi,

I want to hide the Page Header (Logo and Navigation) for a specific number of pages within a site.

I have worked out I need to insert code into the Advanced Settings of the specific page and have used:

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

This worked and hides the Page Header on a desktop machine but when I view it on a mobile the template still inserts a Menu.

Is there anything I need to add to make the Menu disappear?

Thanks in advance

John

Link to comment
5 hours ago, JohnFleuron said:

Hi,

I want to hide the Page Header (Logo and Navigation) for a specific number of pages within a site.

I have worked out I need to insert code into the Advanced Settings of the specific page and have used:

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

This worked and hides the Page Header on a desktop machine but when I view it on a mobile the template still inserts a Menu.

Is there anything I need to add to make the Menu disappear?

Thanks in advance

John

You can use the Css code with media query and target the page id if you only want to hide it on some pages.

@nedia only screen and (max-width: 767px) {
	/*style on mobile*/
}

The header navigation on mobile may be built with another Dom Element. Therefore, if you need help, you can share your site with 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, Keyword Highlighter
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
On 11/16/2022 at 4:35 PM, JohnFleuron said:

Hi,

I want to hide the Page Header (Logo and Navigation) for a specific number of pages within a site.

I have worked out I need to insert code into the Advanced Settings of the specific page and have used:

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

This worked and hides the Page Header on a desktop machine but when I view it on a mobile the template still inserts a Menu.

Is there anything I need to add to make the Menu disappear?

Thanks in advance

John

Which template do you use or link to your site? We can check the code easier

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.