Web Analytics

Fill the form & Get Installation Support

    Magento 2: Add color background in drop-down

    Let’s say that you have a specific requirement to convert a simple drop-down into drop-down with color in the background.

    Step 1:  Add the “drop-down” class in the mentioned file “app/design/frontend/Magemonkey/luma_child/Magento_ConfigurableProduct/templates/product/view/type/options/configurable.phtml”

    Step 2:  Add the below js in the mentioned file

    This will convert the drop-down in HTML structure and set the color as a background.

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

      Recent Articles

      Author Info

      Author Image

      Hire A. Patel

      Get a Free Quote

        Connect With Us