Can't add color swatches to Dawn theme, what am I missing?

I’ve watched 2 YouTube videos now on how to add color swatches to dawn theme. However, both of them, including one 2 months ago have different codes than mine. I can’t even search the section they are discussing. Did they take away this feature in 8.0? What am I doing wrong?!

Hello @BPayne

Follow the below steps.

  1. go to main-product.liquid file
  2. Find below code
    1. {{ value }}
  3. Replace above code with given below code
    1. {% if product.variants[forloop.index0].metafields.color.values and option.name == ‘Color’ %} {% else %} {{ value }} {% endif %}

Thank you

That was from the first video I watched but when I search for option.position it shows 0… even if I just search option or position alone.

Can you invite me on your store rishi@huptechweb.com with limited access i can help you to get this done.

Thank you

Hi @BPayne ,

I understand that you want a color swatch in order to have this you need a costum code and hire a shopify developer. Or you can check the video below.

Hi @BPayne
Emplement this tutorial https://www.youtube.com/watch?v=dtXg-OlL3qo&t=331s

Are you still available for this?

Unfortunately it doesn’t work. That code comes up with 0 results in my search.

Hi @BPayne

Yes i am available

What do you need access to?

Hi @BPayne

Emplemet this tutorial https://youtu.be/0dgo3pFH_Ms

So I was able to change the code and get the color swatches added but it makes all variants the same color swatch even though they are different in the edit section…