Magento Themes and Magento Extensions

How to change background color of product image placeholder?

Share
Posted on May 5th, 2011 | Posted by admin

This is a simple magento tips but there are many people have asked for.

You can find and edit this file:

1.magento\app\code\core\Mage\Catalog\Model\Product\Image.php

find this code:

1.protected $_backgroundColor = array(255, 255, 255); //white background

change the background to the color you prefer:

1.protected $_backgroundColor = array(0, 0, 0); //black color
2.
3.//protected $_backgroundColor  = array(0, 0, 255); //blue color

Clear cache and refesh the fontend to get your result.

Good work!

Page 3 of 3«123