Shopify themes, liquid, logos, and UX
In craft theme - why header changes to a higher height when you click on a product page
Solved! Go to the solution
This is an accepted solution.
Hello @GiudFabri123
Go to Online Store, then Theme, and select Edit Code.
Search for layout/theme.liquid Add the provided code at the end of the file.
{% if template != 'index' %}
<style>
header.header.header--top-left.header--mobile-center.page-width.header--has-menu.header--has-social.header--has-account {
padding-top: 0;
}
</style>
{% endif %}
Hello @GiudFabri123
Please send me your store URL and password, so I can check it and update you.
emailed you
This is an accepted solution.
Hello @GiudFabri123
Go to Online Store, then Theme, and select Edit Code.
Search for layout/theme.liquid Add the provided code at the end of the file.
{% if template != 'index' %}
<style>
header.header.header--top-left.header--mobile-center.page-width.header--has-menu.header--has-social.header--has-account {
padding-top: 0;
}
</style>
{% endif %}
Yes, it works! 🙂
Thank you!!!
Hello, Any idea why it changes on mobile version ?
Hello @GiudFabri123
You're very welcome! I'm thrilled to hear that you're pleased with the outcome. Don't hesitate to reach out if you need further assistance.
like and accepting the All solution. Thank you!
Hello, Any idea why it changes on mobile version ?
Hello @GiudFabri123
Go to Online Store, then Theme, and select Edit Code.
Search for layout/theme.liquid Add the provided code at the end of the file.
@media only screen and (max-width: 768px) {
header.header.header--top-left.header--mobile-center.page-width.header--has-menu.header--has-social.header--has-account {
padding-top: 20px!important;
}
}
sadly it doesn't work
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