Jump to content

move the hamburger menu below the website title on mobile

Go to solution Solved by tuanphan,

Recommended Posts

Can you share your website URL?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

You can add this to Design > Custom CSS or Website > Website Tools > Custom CSS

/* Mobile burger */
@media screen and (max-width:767px) {
.header-display-mobile {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
}
.header-title-nav-wrapper {
    -webkit-box-flex: 1 !important;
        -ms-flex: 1 0 100% !important;
            flex: 1 0 100% !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
    margin: 0 auto !important;
}
.header-title-logo {
    padding: 0 !important;
}
}

image.png.f9319b9f793db664d5d646cf9e831404.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
  • 6 months later...
On 8/12/2023 at 10:16 AM, tuanphan said:

You can add this to Design > Custom CSS or Website > Website Tools > Custom CSS

Thanks the code is working! to put the hamberger below the title, but it's not exactly centered like you can see on my screenshot, do you know a way to do this ? Thanks a lot !!!!

 

Edited by PurpleFox
Link to comment
On 3/15/2024 at 1:11 AM, PurpleFox said:

Thanks the code is working! to put the hamberger below the title, but it's not exactly centered like you can see on my screenshot, do you know a way to do this ? Thanks a lot !!!!

Mots — Hugo Martial l'ART DE VIVRE SUPRÊME.jpeg

What is site url? I can check easier

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 3/16/2024 at 8:47 AM, tuanphan said:

What is site url? I can check easier

 

 

I just see a strange thing : the burger is well centered on desktop when I reduce the width of the window and the mobile version of the site appears. But on smartphone that's not the case with Safari and Chrome.

Edited by PurpleFox
Link to comment
On 3/17/2024 at 1:36 AM, PurpleFox said:

The url is https://www.hugomartial.com/ 

We can see better on this page https://www.hugomartial.com/mots that the burger is not centered on mobile.

I just see a strange thing : the burger is well centered on desktop when I reduce the width of the window and the mobile version of the site appears. But on smartphone that's not the case with Safari and Chrome.

Did you solve with burger? Just tried with Chrome

image.thumb.png.2f60c0cadd877a9d17f54c7e58e9d543.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

IMG_8751.thumb.png.89f450c4d2a215c32187748b0eeba1dd.pngIMG_8750.thumb.PNG.1485854ff05deb6ee128a626d3a847e6.PNG

5 hours ago, tuanphan said:

Did you solve with burger? Just tried with Chrome

 

No ! Thanks to your screenshot we see it's works on Android ( and I see that the site title is on two lines 😱whereas on my iPhone 12 it's on a single line) . But it doesn't work on Safari and Chrome on iOS (see my new screenshots) at least not on my iOS 17.3.1 version. 

Do you have any ideas on how to solve this?

 

Link to comment
5 minutes ago, PurpleFox said:

Do you have any ideas on how to solve this?

Try this addition:

.header .header-mobile-layout-logo-left-nav-right .header-display-mobile .header-burger {
    justify-content: center !important;
    flex: 0 0 50px;
}
.header .header-burger {
    align-items: center !important;
    width: 200px;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.