i want to change the background color of product image on product page.as by default the color is white but can same be changed ?

we have cropped images but as per main image the background doesn't match. as can be seen in image the background is white can a custom color be set on the same. enter image description here

  • What Magento version are you using? – Greg Jan 24 '18 at 14:38
  • magento 2.2.0 ( community ) – RANU EMPRISE Jan 24 '18 at 17:05

Override below file in your theme :


In your theme


Go to Line No. 1014

.fotorama__stage {
   background: #333333; /*Add background color */
| improve this answer | |
  • Is that working for you please vote so another people use same, Thanks – hweb87 May 15 '18 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.