Jump to content

Turn desktop-navigation into hamburger icon in 7.1?

Recommended Posts

  • Replies 17
  • Views 3k
  • Created
  • Last Reply

Top Posters In This Topic

Add to Home > Design > Custom CSS

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

 

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
  • 2 months later...
  • 2 months later...
On 6/10/2020 at 11:20 PM, deaton72 said:

Hamburger menu styling:

I have hamburger menu on the desktop, using 40% of the right side, so that our main image is still mostly visible, but when I click a submenu - such as Firm, the main menu moves to the right and is still visible as an almost ghost image. Is there a way to fix this? 

site: https://corn-apricot-zn88.squarespace.com/

PW BA47

 

Have you solved it yet?

If yes, can you provide the solution?

If not, can you take a screenshot?

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
  • 11 months later...
On 8/12/2021 at 3:41 AM, jenniferboddam said:

@tuanphan is there a way to turn your navigation into a burger menu on scroll? so say scrolling past the first section and it will then fold up into the 3 line menu?

Try this code

@media screen and (min-width:768px) {
 header#header.shrink {
 /* hide navigation */
   .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
    display: none;
}
/* show burger */
.header-burger {
  display: flex;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
opacity: 1;
visibility: visible;
}
}}

 

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

Hi there! Does anyone know how to do this with the Jaunt template? I do not have a site set up yet, this is for a client I'm working with who would like this done on their revamped site, and I just can't find an appropriate solution. If we could also include code to have the menu pop up on the left instead of the top, that would be amazing!

Link to comment
On 10/19/2021 at 10:29 PM, Phil84vaive said:

Hi there! Does anyone know how to do this with the Jaunt template? I do not have a site set up yet, this is for a client I'm working with who would like this done on their revamped site, and I just can't find an appropriate solution. If we could also include code to have the menu pop up on the left instead of the top, that would be amazing!

You mean this template? https://jaunt-demo.squarespace.com/

Add to Design > Custom CSS

header.Header.Header--top {
    display: none !important;
}
.Mobile.loaded {
    display: block !important;
}

 

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
  • 1 month later...
On 4/2/2020 at 5:08 AM, tuanphan said:
@media screen and (min-width:768px) {
 /* hide navigation */
    .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
    display: none;
}
/* show burger */
.header-burger {
  display: flex;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
opacity: 1;
visibility: visible;
}

Hi, 

This code worked for me however I want to center my logo and make it large without pushing the other content down. 

 

I would like to achieve this a wider x and rows for the nav items from this site https://martini71.squaremuse.com/# 

Closed 493391332_ScreenShot2021-12-01at5_15_41PM.thumb.png.4b3792aab6f8fa2183087062786c6278.png

Open782596354_ScreenShot2021-12-01at5_15_32PM.thumb.png.5f11cb93a8db7593fdd98169bbbde233.png

 

My site here on SQSP is https://www.tribeandsol.com but I am currently using a trial to design a new site which is https://ellipse-prism-hf54.squarespace.com 

pw moonmama

Edited by MoonMama
Link to comment
On 12/2/2021 at 10:44 AM, MoonMama said:

Hi, 

This code worked for me however I want to center my logo and make it large without pushing the other content down. 

 

I would like to achieve this a wider x and rows for the nav items from this site https://martini71.squaremuse.com/# 

Closed 493391332_ScreenShot2021-12-01at5_15_41PM.thumb.png.4b3792aab6f8fa2183087062786c6278.png

Open782596354_ScreenShot2021-12-01at5_15_32PM.thumb.png.5f11cb93a8db7593fdd98169bbbde233.png

 

My site here on SQSP is https://www.tribeandsol.com but I am currently using a trial to design a new site which is https://ellipse-prism-hf54.squarespace.com 

pw moonmama

It looks like you solved? I see logo center here

image.thumb.png.3240baa490565af2c3e27e6dfc9318ae.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
  • 1 month later...
On 4/2/2020 at 11:08 PM, tuanphan said:

Add to Home > Design > Custom CSS

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

 

This worked great for me!
Just two questions to follow up —

1. How can I hide the LOGIN next that shows on desktop, next to the Hamburger?
2. How can we add a red hover state to the navigation links in the mobile overlay?

Website: https://raspberry-seabass-y6wf.squarespace.com
Password: movebeyondwithava

Thanks!
Frances
 

Screen Shot 2022-02-01 at 2.25.05 PM.png

Screen Shot 2022-02-02 at 1.10.15 PM.png

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.