Guest Posted November 3, 2019 Share Posted November 3, 2019 Anyone have CSS code to change the word Menu to the hamburger icon on mobile navigation? Thanks! Link to comment
tuanphan Posted November 3, 2019 Share Posted November 3, 2019 @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 jp78 1 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
HeyMa Posted July 5, 2020 Share Posted July 5, 2020 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! Link to comment
tuanphan Posted July 5, 2020 Share Posted July 5, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
mariadraws Posted September 15, 2020 Share Posted September 15, 2020 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!! Link to comment
tuanphan Posted September 18, 2020 Share Posted September 18, 2020 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
brunhilda Posted November 20, 2020 Share Posted November 20, 2020 On 9/18/2020 at 7:02 PM, tuanphan said: can you share site url? We can check easier. hi, the same for me – it disappeared 😞 Link to comment
tuanphan Posted November 22, 2020 Share Posted November 22, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tfaurie Posted March 14, 2021 Share Posted March 14, 2021 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 Link to comment
tfaurie Posted March 14, 2021 Share Posted March 14, 2021 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
arpllc Posted May 19, 2023 Share Posted May 19, 2023 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. Link to comment
tuanphan Posted May 22, 2023 Share Posted May 22, 2023 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. 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
TravisA Posted July 1, 2023 Share Posted July 1, 2023 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
tuanphan Posted July 1, 2023 Share Posted July 1, 2023 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
TravisA Posted July 3, 2023 Share Posted July 3, 2023 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
tuanphan Posted July 5, 2023 Share Posted July 5, 2023 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
dago_perez Posted August 4, 2023 Share Posted August 4, 2023 Im interested in having a hamburger menu on mobile as well please. https://dagoberto-perez.squarespace.com/ Link to comment
dago_perez Posted August 4, 2023 Share Posted August 4, 2023 I tried the code above and I also had trouble with it. It changed to hamburger but was not active. TIA! Link to comment
dago_perez Posted August 4, 2023 Share Posted August 4, 2023 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; } tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment