Shopify themes, liquid, logos, and UX
Hi there, I have a themed collection dropping today and I'd like to change the background color of just one specific collection page. Not even the products in it, I just want the collection page to be a different color. Haven't been able to find a solution.
I would add a dynamic class to the element you want to change the color, then style it with css.
Example:
<div class="container {%- if collection.handle == 'shoes' -%}my-new-collection{%- endif -%}"></div>
Then you style it:
.my-new-collection {
background: lightblue;
}
Hope this helps,
Hello! I was navigating Shopify community and run into your solution.
Could you please advise where do you put the dynamic class code you suggest, and then the styling css?
Cheers!
Hello,
Depends on the theme you are using.
Whats your website domain? And which collection you need to change the background?
Thank you! I solve it by understanding that collections have a template associated, and each template a theme (colours etc).
So I did that and worked well enough. But would be keen to know how to edit the background only via coding 🙂
I'm using Dawn Theme BTW, the URL is www.contemporanea.co.nz
Cheers!
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