Jump to content

How do I change background's product color ?


Recommended Posts

Try in globals.css:

#center_column div.products_block a.product_image {
background-color:transparent;
display:block;
height:129px;
margin-left:2px;
width:129px;
}



Not sure but maybe changing the transparent attribute to any colour could work.
GL!.

Link to comment
Share on other sites

  • 3 weeks later...
  • 6 months later...

I've seen this somewhere on the forum - am looking for it again myself.
the changes need to be made in the file that handles image uploads - there is an R,G,B value in there that dictates the colour of the automatic background. It's not a CSS attribute if I remember rightly.

anyone point me to the correct thread?

Link to comment
Share on other sites

  • 2 years later...

Hello and sorry form my english.

 

Searching a metod for clean the white spaces for the images i probe this and run ok.

In admin/functions.php change arround the line 197 change the simbol > for <.

The crop images dont show withe spaces (crop outside) and generate a proportional images fill all the type images (small, large, etc...) (crop inside)

 

I probe in V1.0.

 

 

Original:

if (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 2 OR (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 0 AND $widthDiff > $heightDiff))

 

 

Modified:

if (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 2 OR (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 0 AND $widthDiff < $heightDiff))

Link to comment
Share on other sites

×
×
  • Create New...