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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024