Jump to content

Change menu to hamburger icon in Wells mobile

Recommended Posts

@caro426 Add to Home > Design > Custom CSS

div#mobileMenuLink a:before {
    content: "";
    background-image: url(https://image.flaticon.com/icons/svg/1279/1279537.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 30px;
    height: 30px;
    display: inline-block;
    visibility: visible;
}
#mobileMenuLink a {
    visibility: hidden;
}

Replace https...svg to icon you want.

Reference: https://beaverhero.com/wells-squarespace/#Change_Menu_to_Hamburger_Icon

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
  • 8 months later...
2 hours ago, HeyMa said:

Hi there! Thanks so much, but this bit of CSS doesn't seem to work, I've tried pasting it in and even updating the icon, but the menu button just disappears! 

Can you share link to your site?

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
  • 2 months later...
On 9/15/2020 at 11:15 PM, mariadraws said:

Hi Tuanphan,

I just tried your CSS code also and the same thing happened- the word menu just dissappears. Any updated fixes?

Thank you so much!!

can you share site url? We can check 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
  • 2 months later...
On 11/20/2020 at 5:01 PM, brunhilda said:

hi, the same for me – it disappeared 😞

Can you share site url? We can check 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
  • 3 months later...
5 minutes ago, tfaurie said:

Hello, sorry to bump an old thread but this doesn't work for me either. Is the path of the .svg correct?
grape-trumpet-ne43.squarespace.com

Nevermind, there is a typo on the code above. For those wondering, this is the right code:
 

#mobileMenuLink a:before {
content: "";
background-image: url(https://image.flaticon.com/icons/svg/1279/1279537.svg);
background-repeat: no-repeat;
background-size: contain;
background-position: center center;
width: 30px;
height: 30px;
display: inline-block;
visibility: visible;
}
#mobileMenuLink a {
visibility: hidden;
}
Link to comment
  • 2 years later...

Hi @tuanphan.

My website is https://www.andyryanphotographer.com/

I had the custom CSS to change the menu to hamburger, but it seems this CSS is no longer working in the wells template.

div#mobileMenuLink a:before {
    content: "";
    background-image: url(https://image.flaticon.com/icons/svg/1279/1279537.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 30px;
    height: 30px;
    display: inline-block;
    visibility: visible;
}
#mobileMenuLink a {
    visibility: hidden;
}

See attached.

I've had to remove this for client functionality.

 

Additionally, just to note, I have custom CSS for my projects page so it operates similarly to my galleries on desktop. https://www.andyryanphotographer.com/projects

/* Projects 1 item row mobile */
@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1643385275940_1762 .slide {
    width: 100% !important;
}
}

Is there a solution to bring the hamburger option back without issues?

Thanks in advance.

IMG_0584.jpeg

Link to comment
On 5/19/2023 at 10:28 PM, arpllc said:

Hi @tuanphan.

My website is https://www.andyryanphotographer.com/

I had the custom CSS to change the menu to hamburger, but it seems this CSS is no longer working in the wells template.

div#mobileMenuLink a:before {
    content: "";
    background-image: url(https://image.flaticon.com/icons/svg/1279/1279537.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 30px;
    height: 30px;
    display: inline-block;
    visibility: visible;
}
#mobileMenuLink a {
    visibility: hidden;
}

See attached.

I've had to remove this for client functionality.

 

Additionally, just to note, I have custom CSS for my projects page so it operates similarly to my galleries on desktop. https://www.andyryanphotographer.com/projects

/* Projects 1 item row mobile */
@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1643385275940_1762 .slide {
    width: 100% !important;
}
}

Is there a solution to bring the hamburger option back without issues?

Thanks in advance.

IMG_0584.jpeg

Use this new code

nav#mobileMenuLink a {
    visibility: hidden;
    text-align: right;
}
nav#mobileMenuLink ul li a:before {
    content: "\e030";
    font-family: 'squarespace-ui-font';
    visibility: visible;
    font-size: 30px;
    display: block;
}

 

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.