web stats

Fill the form & Get Installation Support

Connect With Us


Connect With Us


How to set color images in select box of color attribute in Magento 2?

You can’t set any image & color icon image in the Magento color dropdown attribute.

If you want to set color images in the dropdown of the color attribute then follow below steps.

Step 1: Override this file in your theme and replace with the below code.


Step 2: Add below CSS in your style.css

Step 3: Run below commands.

That’s it.

After making these changes, you can check your product detail page. You will see color images or icons in the color select boxes.


Was this article helpful?
Fill the below form if you have any Magento programming need.


Recent Articles

Author Info

Hire R. Patel

Get a Free Quote