Colour Swatches in Brooklyn Theme

Shopify Partner
13 0 3

Hi there,

I'm using the brooklyn theme. I'm trying to create colour swatches using the tutorial: https://gist.github.com/carolineschnapp/ed47c42d48ae4100f7be . The problem is that the colours are not showing where the variant is two words (eg 'Golden Pearl') or where it contains a '/' (eg 'Mist/Slate').

I'm using the latest version of Brooklyn, replacing spaces within css, and checking case matches.

One issue is that the products are imported from POS software, which means I can't change the variant names to remove/replace the space or slash. It would need to be done within the code.

https://wools-of-wanaka.myshopify.com/collections/scarves/products/0255ribscarf?variant=36689048658

store pw: hiezau

 

Any help/advice would be hugely appreciated!

(If anyone knows of another solution to creating colour swatches in Brooklyn theme, other than using an App, I would also love to hear this. The other methods I've tried don't work.).

0 Likes
Shopify Partner
13 0 3

store pw = hiezau

 

0 Likes
New Member
2 0 0

Did you solve this problem?

0 Likes