I found out that if I enter the name of the basic colour at the end of the variant (example: True Royal Blue instead of True Royal) the circle will turn into that basic colour. However, this is only a temporary solution.
Because the colour has different shades, it’s still not displaying properly. For example, for Military Green, the circle will be the basic green colour instead of the military green colour.
Just one little question, if I may: All I have to do now is to copy-paste your code again if I want another colour, but changing the colour name and the colour ID?
Thanks for reaching out in our Community forums and sharing your concern.
I’m happy to hear that adding the line of code was able to fix the issues you were running into with displaying the correct color swatch. I can also confirm, that it is working as expected:
Feel free to share more information on which theme you’re using and whether or not you’re utilizing an app for these swatches so we can troubleshoot this issue further.
I’d love to know more about your business! How is your current marketing strategy going with bringing customers to your product pages? Have you thought about what to include in your announcement bar?