Thumbnail on product list to small when custom field is displayed

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
8 years 2 months ago #265451

-- HikaShop version -- : HikaShop Business 2.6.4
-- Joomla version -- : 3.6.5
-- Browser(s) name and version -- : safari

In the view product/listing_img_desc, I replaced the code for the product description with the text in the custom field.

The thumbnail of the image will than turn smaller than in the products without a text in the custom field.

I am not the best of php-programmer, so please help me to figure this out.... I would like to keep the size the thumbnail/image has, when no custom field is filled. See the attachment.



Thanx

Attachments:

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

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 2 months ago #265505

Hi,

That's because of the max-width CSS property on the images.
You can add such CSS on your website to prevent that :
.thumbnail .hikashop_product_image img {
max-width : auto !important;
}

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

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
8 years 2 months ago #265608

I tried changing the css, but with no satisfying result.

See the before and after attachments.

I got the image to be bigger. But the font, fontsize and margins of the rest are also changing. That was not my intention

Attachments:

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

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 2 months ago #265612

Hi,

I'm sorry it's not auto but none in the CSS.
However, adding either won't change the font of the titles.
Here is what I see when I add the CSS on your page:
monosnap.com/file/U2e6FUIkmh4G7CEanISecsXNCjjsfs
Please understand that CSS customization is not part of user support.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum