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

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

Link to comment
  • 8 months later...
  • 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

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

Link to comment
  • 2 months later...
  • 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

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

Link to comment
  • 1 month later...

I added this to my Wells template and was working great. However, it seems that it no longer is functional on smaller screened devices. It appears, but is not clickable. I did try the code above, however, that doesn't seem to solve the issue either. 

Link to comment
3 hours ago, TravisA said:

I added this to my Wells template and was working great. However, it seems that it no longer is functional on smaller screened devices. It appears, but is not clickable. I did try the code above, however, that doesn't seem to solve the issue either. 

Which code are you referring to & What is your site url?

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
On 5/21/2023 at 8:04 PM, tuanphan said:

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;
}

 

Added the above to the CSS, but was still not working on smaller screened devices, so I had to revert back to the template default 'Menu'. Have you experienced the same non-function on smaller device screen sizes?

Link to comment
On 7/3/2023 at 11:43 PM, TravisA said:

Added the above to the CSS, but was still not working on smaller screened devices, so I had to revert back to the template default 'Menu'. Have you experienced the same non-function on smaller device screen sizes?

What is your 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

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

Link to comment
  • 5 weeks later...

By the way, this worked for me.

#mobileMenuLink li.active-link a {
  color: transparent;
}
  #mobileMenuLink li.active-link a:before {
     margin: 16px -35px 0px 0px;
        visibility: visible;
     font-family: 'squarespace-ui-font';
     font-size: 3em;
     font-style: normal;
       color: #c3c3c3;
     speak: none;
     font-weight: normal;
     -webkit-font-smoothing: antialiased;
     content: "\e030";
     text-align: right;
     display: inline-block;
     vertical-align: middle;
  }

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.