Shopify themes, liquid, logos, and UX
Hello!
I'm trying to make the header wider so the logo and cart buttons are more to the edges. Right now on all PCs its all so cramped, even the product pages feels cramped. Anyone knows how to fix this? 🙂
I would also like to make the header smaller but keeping the logo size or even make the logo bigger. Right now the header is very "fat", Any ideas?
Thanks alot in advance!
Website: www.hundben.se
Pass: hej123
Solved! Go to the solution
This is an accepted solution.
Hey @Lilboris,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
This will increase the page's width (Change the value 1660 to a higher number if you need to use more space)
<style>
:root {
--page-width: 1660px !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
As for the logo, The logo itself is the reason the header has such a height.
See the size of the logo (170 x 120),
Without the logo, the size of the header is like this:
You should remove unnecessary whitespace in the logo, basically as close as it can get to all corners. Just crop the image. The logo will look bigger then and also take up less space.
This is an accepted solution.
Hey @Lilboris,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
This will increase the page's width (Change the value 1660 to a higher number if you need to use more space)
<style>
:root {
--page-width: 1660px !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
As for the logo, The logo itself is the reason the header has such a height.
See the size of the logo (170 x 120),
Without the logo, the size of the header is like this:
You should remove unnecessary whitespace in the logo, basically as close as it can get to all corners. Just crop the image. The logo will look bigger then and also take up less space.
Thanks you so much! 🙂 It worked wonders, both things.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025