Web Analytics

Fill the form & Get Installation Support





    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.

    app/design/frontend/[VendorName]/[theme]/Magento_ConfigurableProduct/templates/product/view/type/options/configurable.phtml

    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.

     

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Hire R. Patel

      Get a Free Quote





        Connect With Us