the header is a bit smaller on the homepage, I would like the header to be as on the other pages
Hi @GeorgeRizos
Please send your site url
Hi @GeorgeRizos
Please add this Css
.header.page-width {
padding: 3px 5rem;
max-width: 100% !important;
}
this works, but it also makes it bigger on the other pages, I want it to be bigger just on the homepage to be the same as the other pages ![]()
Please add home
home .header.page-width {
padding: 3px 5rem;
max-width: 100% !important;
}
If it’s work please add accepted as solution:)
sadly, it doesnt change anything
Please try this
header.header.header--middle-left.header--mobile-center.page-width.header--has-menu {
padding: 3px 5rem!important;
}
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset >base.css and paste this at the bottom of the file:
@media screen and (min-width: 750px){
.header.page-width {
padding-top: 5px;
padding-bottom: 5px;
}
}
it still changes all the header sizes. So, the homepage header remains smaller than the other pages
Hi @GeorgeRizos ,
Thank you for reaching out to the Shopify forums!
Let me quickly fix that issue for you.
header.header.header--middle-left.header--mobile-center.page-width.header--has-menu {
padding: 0px 5rem!important;
}
Please add the above CSS in your base.css file.
If its working then, please do not forget to accept this solution ![]()
Thanks & Regards,
Prezen Tech
header is still smaller on homepage
Please add this css code in theme.liquid file in head section
{% if page.handle == "index" %}
{% endif %}
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find layout >theme.liquid and paste this at the bottom of the file:
{% if template.name == 'index' %}
{% endif %}
great! this worked. Could you also give me the coding to put top padding to every page
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset >base.css and paste this at the bottom of the file:
.header.page-width {
padding-bottom: 10px;
}
yes, that’s to add bottom padding on the header page only, I’ve done this and it worked. Now I want to put top padding, but on all the pages.
.header.page-width { padding-top: 10px; }
still only works on the homepage

