Jump to content

Change hamburger symbol in nav bar to X when expanded

Recommended Posts

Hi, 

 

I'm trying to get the Hamburger icon on the navigation bar to change to an X when hovering mouse over the menu and menu expands on desktop version (kind of like it does on the mobile version)  
I've tried a few css codes I found online but nothing working so far.. Anyone an idea how to do this? 
Website is https://pigeonhousedelgany.squarespace.com 
password: Peanuts

Thank you, 

1525051948_Screenshot2022-11-22at11_37_03.thumb.png.e143142ee48511d38f4044e3540b30b4.png

Annabelle 

Link to comment
3 hours ago, AnnabelleYLD said:

Hi, 

 

I'm trying to get the Hamburger icon on the navigation bar to change to an X when hovering mouse over the menu and menu expands on desktop version (kind of like it does on the mobile version)  
I've tried a few css codes I found online but nothing working so far.. Anyone an idea how to do this? 
Website is https://pigeonhousedelgany.squarespace.com 
password: Peanuts

Thank you, 

1525051948_Screenshot2022-11-22at11_37_03.thumb.png.e143142ee48511d38f4044e3540b30b4.png

Annabelle 

You can try adding to Home > Design > Custom Css

.header-nav-item.header-nav-item--folder > a:hover:after {
  content: "\00d7";
}

.header-nav-item.header-nav-item--folder > a {
  width: 50px;
  text-align: center;
}

Support me by pressing 👍  or marking as solution if this useful for you

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

My testing

image.png.090b97a72495f7b3ae01297899304a6a.png

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
On 11/22/2022 at 3:37 PM, Beyondspace said:

You can try adding to Home > Design > Custom Css

.header-nav-item.header-nav-item--folder > a:hover:after {
  content: "\00d7";
}

.header-nav-item.header-nav-item--folder > a {
  width: 50px;
  text-align: center;
}

Support me by pressing 👍  or marking as solution if this useful for you

Worked a charm.

You are a legend, 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.