header changes to a higher height when you click on a product page

Solved

header changes to a higher height when you click on a product page

GiudFabri123
Explorer
76 0 16

In craft theme - why header changes to a higher height when you click on a product page

Accepted Solution (1)
devcoders
Shopify Partner
1596 189 488

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 %}

 

 

devcoders_0-1731691293933.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 10 (10)

devcoders
Shopify Partner
1596 189 488

Hello @GiudFabri123 

Please send me your store URL and password, so I can check it and update you.

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
GiudFabri123
Explorer
76 0 16

emailed you 

GiudFabri123
Explorer
76 0 16

Our web is www.scanditure.com

devcoders
Shopify Partner
1596 189 488

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 %}

 

 

devcoders_0-1731691293933.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
GiudFabri123
Explorer
76 0 16

Yes, it works! 🙂
Thank you!!! 

GiudFabri123
Explorer
76 0 16

Hello, Any idea why it changes on mobile version ?

devcoders
Shopify Partner
1596 189 488

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!

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
GiudFabri123
Explorer
76 0 16

Hello, Any idea why it changes on mobile version ?

devcoders
Shopify Partner
1596 189 488

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;
}
}

 

devcoders_0-1739290180597.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
GiudFabri123
Explorer
76 0 16

sadly it doesn't work