Change background color of product preview images

  • Posts: 11
  • Thank you received: 0
10 years 6 months ago #174707

-- HikaShop version -- : HikaShop [1407241754]
-- Joomla version -- : 3.2.3

I'm trying to figure out why some of my product images have a black background... I've checked the product category's settings and they all appear to be white (FFFFFF).

www.ifapray.org/A1/index.php/store/all-merchandise

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #174743

Hi,

Don't you have added something like:

,'background' => '#000000'
In the image options array of your "product / listing_img_title" view ?

If it is, you can remove this part, or set it to "#FFFFFF".
If not, please try to replace:
$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
// By
$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'),'background' => '#000000');

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
10 years 6 months ago #174871

How do I change that setting for the image? Is it in the component interface or in CSS?

Please Log in or Create an account to join the conversation.

  • Posts: 83746
  • Thank you received: 13549
  • MODERATOR
10 years 6 months ago #174884

What Xavier explained can be done via the menu Display>Views of HikaShop. Search for the file "listing_img_title" of the view "product"

Please Log in or Create an account to join the conversation.

Time to create page: 0.140 seconds
Powered by Kunena Forum