Jump to content

Removing the Hamburger Menu on Mobile on single pages.

Go to solution Solved by Ziggy,

Recommended Posts

Hello,

Is there a way to remove the burger menu on mobile in 7.1, rather than simply 'hiding' it.

I found the code below, but it only hides it, the actual menu is still there and clickable. 

 

<style>
  @media screen and (max-width:767px) {
  /* hide burger */
  .burger-box {
    visibility: hidden;
  }
</style>

 

This also means that the shopping cart does not move over to the right, which would be ideal.

Thanks in advance

Antony

Link to comment

Instead of 

visibility: hidden;

use:

display:none;

OR add 

pointer-events:none; to visibility: hidden;

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hi Ziggy,

Thank you for your reply, I have tried the following 2 options, but unfortunately, it still has the same results. The Menu is still camouflaged and still clickable and active.

<style>
  @media screen and (max-width:767px) {
  /* hide burger */
  .burger-box {
    visibility: hidden; pointer-events:none;
  }
</style>

 and

<style>
  @media screen and (max-width:767px) {
  /* hide burger */
  .burger-box {
display:none; }
</style>

 

Link to comment

Where are you placing this?

You have a missing closing curly bracket at the end of each of the code (inside the </style>)

Can you share your website URL?

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hi Ziggy,
This is being placed in the Page Header Code Injection of the Store Page, as I only need to remove it from the Store Pages as we direct into here from outside links. I am also hiding from the Cart via the CSS.

The URL is www.thesignbridge.com/flat-cut-letters-logos

Link to comment
  • Solution

Okay, can you try this code:

<style>
  .header-burger {
    display:none !important; 
  }
</style>

You don't need the media query as the mobile menu only show on mobile (mostly) anyway.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
6 minutes ago, AntonyO said:

Thank you, Ziggy!

Happy to help!

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? 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.