Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

CSS Code to change mobile navigation to hamburger in Avenue Template



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
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

1 answer to this question

Recommended Posts

  • 0

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.

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