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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.