How do i reduce white space in header on mobile shopify store

25 0 7



I know there are numerous responses on this topic however, none worked for me. Can anyone help with a code to reduce the white space below my logo? It's in the header box. I have checked the image, It has no white space around it. 


On desktop version, the space is perfect. Please see below what I am talking about 

Replies 2 (2)

681 132 125

Hi @deezaorganics ,


You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save


#shopify-section-sections--19289120112922__header .header__search summary,#Details-menu-drawer-container summary{
    align-items: center;
    justify-content: center;
    display: flex;



Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

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

PageFly - #1 Page Builder for Shopify merchants.

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

25 0 7



Thank a lot for your input however there was no difference when i added the code