Jump to content

Replace Hamburger Menu Icon With Text

Recommended Posts

2 hours ago, orneverornow said:

Site URL: https://www.voegelino.com/

Hi there

I would like to change the hamburger menu icon into the text MENU. Any idea? I have a quite complicated set up with this menu and don't want to destroy anyting. Could anyone please help me? 

https://www.voegelino.com/
PW: orneverornow

Attached you can find the custom code that is in the CSS.

Thanks!
Sibylle

Bildschirmfoto 2022-03-02 um 11.44.48.png

Do you mean something like this?

image.thumb.png.68332c4aca63d0af5c924289199dc579.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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
7 hours ago, orneverornow said:

@bangank36 Could you please help me with it? 🙏 

Try adding to Home > Design > Custom Css

.header-nav-folder-title[href*="burger"]:after{
  content: 'Menu';
}

.header-nav-folder-title[href*="burger"] svg {
  display: none;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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
7 hours ago, bangank36 said:

Try adding to Home > Design > Custom Css

.header-nav-folder-title[href*="burger"]:after{
  content: 'Menu';
}

.header-nav-folder-title[href*="burger"] svg {
  display: none;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Hi @bangank36. Thank you so much. It worked like a charm. How can I make it in capital letters and a little bit bigger?

Thx!!!

Link to comment
4 hours ago, orneverornow said:

Hi @bangank36. Thank you so much. It worked like a charm. How can I make it in capital letters and a little bit bigger?

Thx!!!

You can add the style of font-size for this pseudo element, from:

.header-nav-folder-title[href*="burger"]:after{
  content: 'Menu';
}

to

.header-nav-folder-title[href*="burger"]:after{
  content: 'Menu';
  font-size: 25px;
}

Change the size value until it meets your requirement

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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
  • 7 months later...
On 10/9/2022 at 6:17 AM, ozk said:

is the code different for my website? ebtacademy.squarespace.com 

 

cant get it to work

Add to Design > Custom CSS

/* Burger icon to text */
.burger-inner>div {
    visibility: hidden;
}
.burger-inner:after {
    visibility: visible;
    content: "Menu";
    font-size: 20px;
    color: white;
    white-space: nowrap;
    position: relative;
    left: -10px;
}

 

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
  • 6 months later...

Is there a way I can do this specifically for the mobile version of the site? 

The desktop version has the nav pages on the right of the header and I like how that looks. But on the mobile version, it just shows the burger. I'd like it to say Case Studies as text on two rows of text. But without it impacting how the desktop version of the site looks. 

Thank you in advance and apologies for bumping an old thread. 

Screenshot (662).png

Screenshot (663).png

Link to comment
On 5/10/2023 at 6:29 PM, SteHamp said:

Is there a way I can do this specifically for the mobile version of the site? 

The desktop version has the nav pages on the right of the header and I like how that looks. But on the mobile version, it just shows the burger. I'd like it to say Case Studies as text on two rows of text. But without it impacting how the desktop version of the site looks. 

Thank you in advance and apologies for bumping an old thread. 

Screenshot (662).png

Screenshot (663).png

What is your site url?

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
On 5/14/2023 at 5:29 AM, tuanphan said:

The url doesn't work. Can you check it again?

It's definitely www.eiecasestudies.com Oddly enough when you click that link in the previous post it opens a new tab as "eiecasetudies". How odd. 

Link to comment

Add to Design > Custom CSS

@media screen and (max-width:991px) {
.header-display-desktop {
    display: flex !important;
}
.header-display-mobile {
    display: none;
}
.header-burger {
    display: none;
}
.header-nav {
    display: flex !important;
}
.header-nav {
    display: flex !important;
    flex: 70% !important;
    justify-content: flex-end;
}
.header-title-nav-wrapper {
    flex-direction: column;
}
.header-nav {
    padding: 0 !important;
    text-align: center !important;
}
nav.header-nav-list {
    justify-content: center !important;
}
}

image.png.25481b1199cb4fe63ad942fd9f0cac67.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
  • 8 months later...
/* Burger icon to text */
.burger-inner>div {
    visibility: hidden;
}
.burger-inner:after {
    visibility: visible;
    content: "Menu";
    font-size: 20px;
    color: white;
    white-space: nowrap;
    position: relative;
    left: -10px;
}

This worked great for me, but what I REALLY want is for MENU to be a button. I want this on desktop and mobile. Click the button, get the mobile menu with nav bar, on both mobile and desktop.

sallylynne.com

Link to comment
On 2/13/2024 at 4:15 AM, Insigneia4 said:
/* Burger icon to text */
.burger-inner>div {
    visibility: hidden;
}
.burger-inner:after {
    visibility: visible;
    content: "Menu";
    font-size: 20px;
    color: white;
    white-space: nowrap;
    position: relative;
    left: -10px;
}

This worked great for me, but what I REALLY want is for MENU to be a button. I want this on desktop and mobile. Click the button, get the mobile menu with nav bar, on both mobile and desktop.

sallylynne.com

Add this CSS under

.burger-inner:after {
    background-color: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 10px;
}

 

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.