Jump to content

Burger menu on mobile version

Recommended Posts

Site URL: https://www.xn--gteagency-f3a.dk/

Hi!

I used this guide to create a burger menu: https://ryandejaegher.com/how-to-add-a-desktop-burger-to-squarespace-7.1/ 

But when using this code, the menu disappears on the mobile version:
/* This will hide the desktop burger on mobile devices*/
@media (max-width: 767px) {
a[href='/burger'] {
display: none;
}
}

If I then remove the code, the menu says "Burger menu >" and when I click that I get to the actual menu (see attached photos). Can anyone help me, please?

 
 
 

Skærmbillede 2022-06-14 kl. 18.00.48.png

Skærmbillede 2022-06-14 kl. 18.00.41.png

Link to comment
  • Replies 2
  • Views 479
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add this to Design > Custom CSS

@media screen and (max-width:991px) {
	.header-menu-nav-folder {
    transform: unset !important;
}
.header-menu-controls.container.header-menu-nav-item {
    display: none;
}
[data-folder="root"]>.header-menu-nav-folder-content:first-child {
    display: none;
}}

 

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.