Shopify themes, liquid, logos, and UX
Colour filter on Dawn Theme.
Would usually just show a single 'dot' of the colour to filter by.
Suddenly started doing this, no idea why. Happens on all of the collection pages.
https://buycarpetonline.uk/collections/carpets
Should display a nice single dot, sort of like this.
Any ideas greatly appreciated.
Solved! Go to the solution
This is an accepted solution.
Non sure why this happened, but this can fix it.
Paste into "Custom CSS" setting of this section:
.facet-checkbox[for*=color] {
background: none no-repeat 3px center;
background-size: 2rem;
border-radius: 0;
padding-left: 3.5rem;
}
.facet-checkbox[for*=color] input:checked {
width: calc(2rem + 6px);
height: calc(2rem + 6px);
border:2px solid var(--color-icon);
border-radius: 7px;
}
Try adding the following css to your theme:
#Details-1-template--24685176029557__product-grid .facet-checkbox {
background-repeat: no-repeat;
background-position: 0px;
}
#Details-1-template--24685176029557__product-grid .facet-checkbox span {
padding-left: 32px;
}
#Details-1-template--24685176029557__product-grid label {
border-radius: 0 !important;
}
In which file would I add this css?
This is an accepted solution.
Non sure why this happened, but this can fix it.
Paste into "Custom CSS" setting of this section:
.facet-checkbox[for*=color] {
background: none no-repeat 3px center;
background-size: 2rem;
border-radius: 0;
padding-left: 3.5rem;
}
.facet-checkbox[for*=color] input:checked {
width: calc(2rem + 6px);
height: calc(2rem + 6px);
border:2px solid var(--color-icon);
border-radius: 7px;
}
Hi there,
Thanks for the code, this does amend the boxes, it loads after launch.
Would there be a global css file I could add this to or amend primary code for the item, so as to stop a 'coverup' and make it the primary status?
You have assets/component-facets.css -- put the code at the bottom. That file covers the filters.
I usually add a comment above to remind what was done and why.
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025