Jump to content

Customizing Font on custom CSS Burger Menu

Go to solution Solved by Beyondspace,

Recommended Posts

http://laluma.squarespace.com

Hey people!
I have a custom code injected to my website to have a burger menu on desktop version. I would like to style the font on that custom menu. How is that possible? What I have is less vertical spacing between the links a bigger font size.

This is the CSS I'm using for the burger menu (found here on the forum and works well):

/* 768 for tablet - desktop - 992 for desktop */
@media screen and (min-width:992px) {
 /* hide navigation */
    .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
  position: absolute;
  right: 80px;
}
/* show burger */
.header-burger {
  display: flex;
  position: absolute;
  right: 10px;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
opacity: 1; visibility: visible;
}
}


Thanks for helping out!

Bildschirmfoto 2022-11-15 um 13.34.45.jpg

Link to comment
  • Solution
2 hours ago, Laluma said:

http://laluma.squarespace.com

Hey people!
I have a custom code injected to my website to have a burger menu on desktop version. I would like to style the font on that custom menu. How is that possible? What I have is less vertical spacing between the links a bigger font size.

This is the CSS I'm using for the burger menu (found here on the forum and works well):

/* 768 for tablet - desktop - 992 for desktop */
@media screen and (min-width:992px) {
 /* hide navigation */
    .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
  position: absolute;
  right: 80px;
}
/* show burger */
.header-burger {
  display: flex;
  position: absolute;
  right: 10px;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
opacity: 1; visibility: visible;
}
}


Thanks for helping out!

Bildschirmfoto 2022-11-15 um 13.34.45.jpg

Try adding to Home > Design > Custom Css

.header-menu-nav-folder-content .header-menu-nav-item-content {
  font-family: arial;
}

Choose the custom font you want to apply

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

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.