bapu4davis Posted August 10, 2022 Share Posted August 10, 2022 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. How can I change this spacing? Thank you all for any help! Link to comment
tuanphan Posted August 10, 2022 Share Posted August 10, 2022 It looks like you changed header element position. Do you still need help? 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
bapu4davis Posted August 11, 2022 Author Share Posted August 11, 2022 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? Link to comment
tuanphan Posted August 13, 2022 Share Posted August 13, 2022 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment