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 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
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 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
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 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
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 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
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 Share Posted May 19 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 Share Posted May 22 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 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment