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
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025