Shopify themes, liquid, logos, and UX
'm using the Dawn theme and I want to know how I can change the background color of this product page to white without affecting my other product pages
https://www.fitgstore.com/products/smartwatch-luna-fit-l1
Solved! Go to the solution
This is an accepted solution.
Hi @George00011
Try this one.
<style>
{% if product.handle == 'smartwatch-luna-fit-l1' %}
main#MainContent {
background-color: red;
}
{% endif %}
</style>
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @George00011
Try this one.
<style>
{% if product.handle == 'smartwatch-luna-fit-l1' %}
main#MainContent {
background-color: red;
}
{% endif %}
</style>
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thank You its worked, but i have problems with the font its white and i wanted white background. If i change the color of the font they change for all my other products =/
That is what im thinking also, you can add another code in that liquid code. LIke this.
Same Instruction.
<style>
{% if product.handle == 'smartwatch-luna-fit-l1' %}
main#MainContent {
background-color:white;
}
.product__info-wrapper.grid__item * {
color: black;
}
{% endif %}
</style>
And Save.
But in this page you have another section that is not change into white backgrounds.
this one.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Would help me for change the of the font to black onyl for this page please ?
I give another code, it doesnt 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