Jump to content

For the header of the mobile view, how can you show 3 things: hamburger menu, logo and a button?

Go to solution Solved by ErikaT,

Recommended Posts

On 3/23/2021 at 9:19 AM, zzlogan said:

Site URL: https://pomegranate-badger-p3wd.squarespace.com/magazine

I'm trying to make the Mobile header show three things:
hamburger menu / Logo / Button "Buy / Subscribe", I attached what I currently have (SpaceonSpace).
 
I also attached what I'm trying to go for (Offscreen).  What would you recommend? 
 
 

current menu.png

goal for mobile menu.png

Hi. Do you still need help? Which plan do/will you use?

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

Hi,

I edited one of @tuanphan responses to a similar query, with some tweaks for your setup:. Tuan is the expert, I'm still learning 🙂

@media screen and (max-width:1024px) {

/* show button */
.header-actions {
    display: block !important;
}
.header .header-actions-action--cta {
    display: block;
          width: 10% !important;
}

/* logo width */
.header-title-nav-wrapper {
    flex: 50% !important;
}
}


.header  .header-mobile-layout-logo-center-nav-left .header-display-mobile .header-title .header-mobile-logo {
    padding-right: 0px;
    padding-left: 10px;
    }

Link to comment

@tuanphan @ErikaT,

thank you for the input, here is the code I used and slightly adjusted,

 

@media screen and (max-width:1024px) {

/* show button */
.header-actions {
    display: block !important;
}
.header .header-actions-action--cta {
    display: block;
          width: 0% !important;
             padding-right: 0px;
          padding-left: 0px;
}

/* logo width */
.header-title-nav-wrapper {
    flex: 100% !important;
    //width: 50% !important;
    //max-width: 500px;
    padding-right: 0px;
    padding-left: 0px;
}
}
/* burger width */
.header-burger {
    //flex: 0% !important;
      font-size: 10px;
    width: 15% !important;
    margin-left: -13px;
}
.container.header-menu-nav-item a {

}
.header  .header-mobile-layout-logo-center-nav-left .header-display-mobile .header-title .header-mobile-logo {
    padding-right: 0px;
    padding-left: 0px;
  }

also this post helped: 

 

Link to comment
  • 9 months later...
On 1/15/2022 at 7:09 AM, couper37 said:

This worked great to get the button to display on my phone.  But, it messed up the social links/button formatting in my header on the desktop.  They used to be side by side (as is standard) but now they are stacked (see image).

image.png.e1e708107891d92bb21972b132977313.png

Any help?

Thanks.

image.png

Can you share link to your site? We can check problem 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 1/18/2022 at 12:04 AM, couper37 said:

Add to Design > Custom CSS

@media screen and (min-width:992px) {
.header-actions.header-actions--right {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    position: relative;
    left: -30px;
}
}

 

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.