Header

Topic summary

Reducing the header height without changing the logo size. The store owner set top/bottom padding and bottom margin to zero, but the header height did not shrink. A site link and a screenshot of the large header were provided.

Proposed fix: edit the Shopify theme.liquid file (Online Store → Theme → Edit code), and paste custom code before the closing tag, then save. A result screenshot shows a slimmer header after the change.

Key gap: the actual code snippet to paste is missing/not visible in the post, so the instructions are incomplete. The screenshots are central to understanding the expected outcome.

Status: no confirmed resolution yet; the solution requires the missing code to be shared or clarified, and confirmation from the store owner after applying it.

Summarized with AI on December 19. AI used: gpt-5.

I’m trying to reduce the size of my header without changing the logo size but its not working at all. The bottom margin, Top and bottom padding all are at zero but there’s no change in the header size. I have tried diffrent codes but its of no use.

https://www.elvendesires.com/

Please help.

1 Like
  • Here is the solution for you @Xakhil
  • Please follow these steps:
  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before and press ‘Save’ to save it

  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
1 Like