How do I change the color scheme of all my pages apart from home/product page?
To background white, text black.
Url: https://errival.com/products/errival%E2%84%A2-instant-period-cramp-relief-heated-belt
A user needed to change the color scheme of all pages except the homepage and product pages to white background with black text.
Solution provided:
theme.liquid file</head> tag using Liquid template logic{% unless template.name == 'index' or template.name == 'product' %}) to exclude homepage and product pages from the styling changesOutcome:
The solution was successfully implemented and marked as resolved by the original poster.
How do I change the color scheme of all my pages apart from home/product page?
To background white, text black.
Url: https://errival.com/products/errival%E2%84%A2-instant-period-cramp-relief-heated-belt
Hi @Ryan1998 ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
{% unless template.name == 'index' or template.name == 'product' %}
{% endunless %}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
Great!! thank you ![]()
@Ryan1998 No problem, Have a good day ![]()