jesscraven Posted March 24, 2021 Share Posted March 24, 2021 Site URL: https://www.missjesscraven.com Hello squarespace world, I'm looking for custom css to add that will change my mobile navigation from MENU to the hamburger icon. I found this:/* HAMBURGER NAVIGATION */ #mobileMenuLink a:after { content: '☰'; color: black; width: 100%; text-align: right; position: absolute; top: 0; left: 0; } But that just added a hamburger icon in the top right corner but didn't replace or change the current menu on mobile view. Thanks! Link to comment
tuanphan Posted March 25, 2021 Share Posted March 25, 2021 (edited) Hi. Remove above code & add this to Design > Custom CSS /* Menu to burger */ /* burger icon by iconmonstr */ #mobileMenuLink ul>li.active-link { visibility: hidden; } #mobileMenuLink ul>li.active-link a:before { visibility: visible; content: ""; background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjQgNmgtMjR2LTRoMjR2NHptMCA0aC0yNHY0aDI0di00em0wIDhoLTI0djRoMjR2LTR6Ii8+PC9zdmc+); width: 30px; height: 30px; display: block; margin-right: 5px !important; background-position: right center; background-repeat: no-repeat; float: right; margin-top: 5px; } Edited March 25, 2021 by tuanphan 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