Shopify themes, liquid, logos, and UX
Hi i would like to be able to make padding-left: 0px; in the header of the product page only (ON MOBILE), I have seen that there are people who use this code in theme liquid:
{%- if template.name == 'product' -%}
<style>
@media screen and (max-width: 749px) {
.header {
padding-left: 0px !important;
}
}
</style>
{%- endif -%}
but it does not work for me.
https://jaccomcollection.com/products/jaccom-cotton-t-shirt-1
Thanks You!
Solved! Go to the solution
This is an accepted solution.
Hello @ArnauP
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> section-main-product.css
add this code at the end of the file.
@media screen and (max-width: 749px) {
#shopify-section-sections--23363770253654__header .header {
padding-left: 0px !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
This is an accepted solution.
Hello @ArnauP
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> section-main-product.css
add this code at the end of the file.
@media screen and (max-width: 749px) {
#shopify-section-sections--23363770253654__header .header {
padding-left: 0px !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Thanks for accepting my solution
can you please buy me a coffee for my work.
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