Jump to content

CSS Code to change mobile navigation to hamburger in Avenue Template

Recommended Posts

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.


Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

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.