Hikashop Product Background Color

  • Posts: 56
  • Thank you received: 1
1 year 8 months ago #350329

For the hikashop product background color, have change the stripe color setting to black - supposed all the product images which not fit the default size will have a black stripe, but noticed that only product with jpg image have the black strip, other format will have the white stripe. Is this because of the file format? Any way to solve this?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 8 months ago #350331

Hi,

Well, yes and no.
For png images, HikaShop does not add stripes since the png format supports transparency.
So the stripes are transparent for png images and thus what you see is actually the background color:
i.imgur.com/M3ebGs7.png
If you check that screenshot, you can see the grey and white check pattern for the image's stripes indicating the transparency.
And on the bottom right side, you can see a white background CSS rule applied to the area by your template's CSS.
So change that white color to black in your template's templates/shaper_spectrum/css/hikashop-black.css file
and you'll have the display you want:
i.imgur.com/Gdizcma.png
Ideally, you want to report the issue to your template provider. Maybe, they will recommend a better solution than directly modifying that CSS file.

The following user(s) said Thank You: jiawen

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

Time to create page: 0.051 seconds
Powered by Kunena Forum