Jump to content

Hamburger menu on Wexley Mobile/Tablet

Recommended Posts

Site URL: https://cindyclaudia.com

Hi, can I ask the custom CSS to change the 'menu' to hamburger for mobile and tablet view? I'm using the Wexley template

My site is cindyclaudia.com (password: 123456)

*If possible, I'd like the 3 lines hamburger menu. But if not, the regular 2 lines is fine too. 

And next, I'd like to know how to make the menu content full screen when selected (on mobile and tablet) like the examples I attached.

Thank you!

 

 

Screenshot 2020-11-03 at 16.32.37.png

Edited by cindyclaudia13
Link to comment

 

#mobileNav.menu-open {
    height: 100vh !important;
}
#mobileNav .wrapper {
    position: relative;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.site-title #mobileMenuLink a {
    color: transparent;
    width: 100%;
    height: 15px;
    user-select: none
}
#mobileMenuLink {
    position: fixed;
    text-align: right;
    right: 20px;
    top: 60px;
    background-color: transparent;
    z-index: 9999;
}

#mobileMenuLink:before,
#mobileMenuLink:after {
  content: '';
  position:absolute;
  width: 40px;
  height: 1px;
  background:#000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition:0.5s;
  left: 0;
}

#mobileNav.menu-open + #mobileMenuLink {
  background:rgba(0,0,0,0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
}

#mobileNav.menu-open + #mobileMenuLink:before {
  top: 0;
  transform:rotate(45deg);
}

#mobileNav.menu-open + #mobileMenuLink:after {
  top: 0;
  transform:rotate(135deg);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

image.thumb.png.4619bdd9fdeba7e535afd350b7a587dd.png

Copy this to Settings->Design->Custom Css

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 2 years later...
On 12/25/2022 at 2:07 AM, rd23 said:

Hello,

I used the above CSS code, however it is giving me the two line hamburger style. Is there a way I can get the three line hamburger style? 

Thank you.

Use this CSS

div#mobileMenuLink a:before {
    content: "\e030";
    font-family: 'squarespace-ui-font';
    font-size: 30px;
}
div#mobileMenuLink a {
    font-size: 0 !important;
}

image.thumb.png.fa8939aa821ba4c7e9619e650943e32e.png

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

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.