Remove white space under header in menu mode

Solved

Remove white space under header in menu mode

ellacoker
Shopify Partner
287 1 74

Hello,

So, I have this extra white space in the secondary menu. The first menu doesn't have it, but then if I click on product / about / etc. it has a small white space that I would like to remove. Any ideas?

 

URL: https://www.samiyaskincare.com.au/

PW: ellacoker

 

Screenshot 2025-02-04 at 07.26.27.pngScreenshot 2025-02-04 at 07.26.21.png

Accepted Solution (1)

PageFly-Richard
Shopify Partner
5011 1120 1805

This is an accepted solution.

This is Richard from PageFly - Shopify Page Builder App
Hi  @ellacoker Please add code here to fix it:
Step 1: Online Stores > Themes > Edit code
Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>

 

 

<style>
@media screen and (max-width: 767px) {
 .menu-drawer__close-button {
  margin-top: 0px !important;
 }
}
</style>

 

 

And here is result

PageFlyRichard_0-1738909786289.png

 


Hope my solution will help you resolve the issue.
Best regards,
Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 9 (9)

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @ellacoker 

Do you mean like this?

Made4uoRibe_0-1738619707440.png

If it is try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.js .menu-drawer {
    height: min(
        min-content,
        calc(100vh - 100%),
        calc(var(--viewport-height, 100vh) - var(--header-bottom-position, 100%)) 
    ) !important;
}

 

  • And Save.

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
ellacoker
Shopify Partner
287 1 74

Hello,

See screenshot below for what area I mean... thank you. Its only small but still noticeable 

Screenshot 2025-02-04 at 10.03.38.png

PageFly-Richard
Shopify Partner
5011 1120 1805

Hi @ellacoker ,

could you please try this code again 

 

<style>
@media screen and (max-width: 767px) {
 .menu-drawer__close-button.link.link--text focus-inset {
  margin-top: 0 !important;
 }
}
</style>

 

And here is result from my side

PageFlyRichard_0-1738929995083.png


Hope my solution will help you resolve the issue.
Best regards,
Richard | PageFly

 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

Vinsinfo
Shopify Partner
491 167 172

@ellacoker Please follow the below steps to remove the space displaying above the secondary menu in header drawer. Let us know whether it is helpful for you.

 
1. Go to "Online stores" -> "Themes".
2. Click action button from the current theme and select "Edit code".
3. Search "base.css" file and paste below CSS code at the bottom of the file.

 

.menu-drawer__close-button {
  margin-top: 0px !important;
}

 

 
4. Result will be like,
Vinsinfo_0-1738675423372.png

 

 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support

LizHoang
Shopify Partner
1251 159 195

Hi @ellacoker, thanks for reaching out. 

 

I checked the secondary menu and everything appears to be aligned correctly on our end. Could you please try clearing your browser cache or checking in an incognito window to see if the issue still persists? 

 

Please take a look at my screenshot for further details: 

 

image (3).png

 

I hope my information is helpful to you, and please feel free to feedback. 

 

Liz

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

PageFly-Richard
Shopify Partner
5011 1120 1805

This is an accepted solution.

This is Richard from PageFly - Shopify Page Builder App
Hi  @ellacoker Please add code here to fix it:
Step 1: Online Stores > Themes > Edit code
Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>

 

 

<style>
@media screen and (max-width: 767px) {
 .menu-drawer__close-button {
  margin-top: 0px !important;
 }
}
</style>

 

 

And here is result

PageFlyRichard_0-1738909786289.png

 


Hope my solution will help you resolve the issue.
Best regards,
Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

ellacoker
Shopify Partner
287 1 74

Hi there Richard, unfortunately it didn't solve it in my case 😞

ellacoker
Shopify Partner
287 1 74

Screenshot 2025-02-07 at 21.03.52.pngScreenshot 2025-02-07 at 21.03.14.png

ellacoker
Shopify Partner
287 1 74

Its working! Thank you so much Richard.