I am trying to change the color scheme for the product cards for each of my collections (Save collection is assigned the test-grid theme template; Lost and Found collection is assigned the lost-and-found theme template). When I attempt to edit the product card color scheme from each of the theme templates, it changes the color scheme on both collections. I am using differing color schemes to change the shadow color. I also tried various css syntax to target the shadow color change. I have a feeling I am overcomplicating this. Thanks for your help.
Hi,
Could be a couple of issues
-
Check that Admin > Products > Collections > Theme Template drop-down for each collection are pointing to the new theme templates with different colour schemes.
Save collection = test-grid theme template
Lost and Found collection = lost-and-found theme template -
Your updating the same colour scheme used on both templates,
Save collection is assigned the test-grid theme template = scheme 5
Lost and Found collection is assigned the lost-and-found theme template = scheme 6
if they are both using scheme 5 updates to that scheme will change both
Regards
Thank you.
I do have the Theme templates assigned to the collections in admin
[image: image.png]
[image: image.png]
So I assume I am setting up my Theme Templates incorrectly.
I thought that changing the color scheme from within lost-and-found
collection would only update that collection, but it is updating the theme
for all collections.
[image: image.png]
I am very new to shopify and have tried searching for tutorials on this
specific scenario but havenât found a simple way to do this through the
editor.
Thanks so much for your time.
Hi,
Glad to hear you found a solution, youâre on the right track ![]()
Suspect youâre editing the same Colour Scheme from the Section used on both âCollections Templatesâ
The Colour Schemes are related to Sections, as in the Collections Templates use the available Colour Schemes from the Sections they are using (for example Product grid), the Section is shared between both Collections Templates and defines the available Colour Schemes the Collections Templates have access to and will use.
Editing Scheme 1 will change both Collections Templates
âCollections Template 1â <> âSection - Product Gridâ (Scheme 1)
âCollections Template 2â <> âSection - Product Gridâ (Scheme 1)
Editing Scheme 1 will only change âCollections Template 1â
âCollections Template 1â <> âSection - Product Gridâ (Scheme 1)
âCollections Template 2â <> âSection - Product Gridâ (Scheme 2)
If you create a new Colour Scheme in âCollections Template 1â <> âSection - Product Gridâ that scheme will be the same / available in âCollections Template 2â <> âSection - Product Gridâ, the same if you edit a scheme in one Template that change will reflect to the other Template where the same Section is in use.
Hopefully this makes senseâŚ
Regards
So do I need another product grid item?
Here is where I edited the color scheme for the Save Collection
Based on your comment, I tried to create a new âproduct gridâ but didnât have that option so I created a featured collection and selected lost-and-found. Then I attempted to update the theme settings while in that featured collection, but it changed it on both collections.
Is there CSS that I can use to the effect of âif tag = adopt or if collection=lost and found then change product card shadow to be redâ?
Hi,
On Collection > Lost and Found Template
Remove Featured Collection and use Product grid again.
Add the CSS below to Collection > Lost and Found Template > Product gird > Custom CSS
Leave Collection > Test Grids Template to use the colour defined in the Colour Scheme.
CSS: Update âcolor-shadow-custom: value, value, value to the colour you want as an RGBA value (excluding the A value).
.card--card::after, .card--standard .card__inner::after {
--color-shadow-custom: 253, 107, 112;
box-shadow: var(--shadow-horizontal-offset) var(--shadow-vertical-offset) var(--shadow-blur-radius) rgba(var(--color-shadow-custom),var(--shadow-opacity));
}
This styling is done via Theme Settings - Product cards with Shadow horizontal and Vertical offset etc. + Colour Scheme and can be modified via theme editor under Theme Settings - Colour Scheme however you cant change this via my suggestions to be different as its only set in one place Theme Settings - Product cards > Colour Scheme
Regards


