Jump to content

Button is overlapping hamburger in mobile header

Recommended Posts

Site URL: https://bapu4davis.org

I wanted to ensure our "Donate" button appeared in the mobile header. To get it to show up, I had to use some custom css I found from https://blog.tawfiq.me/how-to-add-a-button-to-mobile-header-between-logo-and-menu-icon-squarespace/.
 

/* Show button on mobile menu*/
@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: 10% !important;
}
}

The button now shows up on the mobile header, woot!
 

Problem is, it overlaps with the hamburger icon. See photo.

IMG_BF07E7DA1E98-1.thumb.jpeg.4bf4d5f460afa432a7503be2a339e9ac.jpeg

How can I change this spacing?

 

Thank you all for any help!

Link to comment
  • Replies 3
  • Views 422
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 8/11/2022 at 7:15 AM, bapu4davis said:

Thank you! Yes, that was our fix-- it's not perfect (we'd rather maintain the logo on the left) but it did solve the overlap issue.

 

Do you have suggestions for fixing overlap in the original header position, though?

Yes. We can reduce button size & move it to left a bit with some code

However, you need to change layout it, we can check code 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

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.