Why isn't my product color variant functioning properly?

recently im having an issue with my color variants wich is not working in my latest products.I was not having this issue before i dont know how this is happened but simply the problem is u can see the options for colors but whenever you choose one of them it doesnt work.I asked the shopify support they said its working in another themes so you must have changed codes some how,maybe i accidentally removed a code.So if anybody could help me with it i would be appericate it.

The solution which works in this situation is:

  1. revert the changes you did.
  2. Use a new theme, it will work but you need to configure everything again.
    3 hire a developer to find the issue and fix it.

Thanks