Shopify themes, liquid, logos, and UX
Hi. I'm having trouble reducing the padding of our header. The padding both above and below the logo is a bit excessive. I'm wanting to slim the header up just a bit. Any help?
Thanks in advance.
Hi @AoNSK
Would you mind to share your Store URL website? with password if its unpublish. Thanks!
Thanks for the info, check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
<style>
@media (min-width: 769px) {
.header__logo {
margin-bottom: 0;
}
store-header.header.bg-theme-bg.text-theme-text.has-motion {
padding-top: 0;
}
}
</style>
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hey @AoNSK
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025