How to hide button on the mobile menu when it’s open - Squarespace 7.1

Sometimes you may want a button or link to show on desktop, but hide it from the mobile menu when the mobile navigation menu is open. This can be done with a little custom CSS.


Add the following to your Custom CSS

//Hide button on mobile menu when open

@media only screen and (max-width: 767px) {
  [data-folder="root"] > .header-menu-cta {
    display: none;
  }
}
Dave Hawkins

As a top tier Squarespace Expert and founder of Made by Dave, I bring over 8 years of Squarespace experience and 200+ bespoke website launches. Our process combines consultancy, design, project management and development for a collaborative and efficient experience with clients like you. Whether you need a new website or updates for your existing site, we'll help you get up and running.

https://madebydave.org
Next
Next

How to add a Back button to blog post - Squarespace 7.1