Maintain aspect ratio of product detailed/zoomed view?

  • Posts: 4
  • Thank you received: 1
8 years 4 months ago #261749

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.5

Hi

On a product page, when I click on the product image to get a larger view, the image loses its aspect ratio with smaller windows/devices.

How can I get HikaShop to preserve the aspect ratio?

Thanks in advance!

Last edit: 8 years 4 months ago by PaulR.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 4 months ago #261776

Hello,

These way to treat picture image is strange can you provide an Url link with concerned product please ?
Does this issue touch all your product or just one image ?
I suspect some custom Css to modify classic way to proceed.

Awaiting news from you

Regards

Last edit: 8 years 4 months ago by Philip.

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

  • Posts: 4
  • Thank you received: 1
8 years 4 months ago #261830

Thanks very much for the reply. I had provided the Url in the thread info and set it to private. I have PM'd you the link to the (only) product on the site, which is live but not ready for ridicule yet. :)

Hope this helps!

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 4 months ago #261832

Hi,

That's linked to the CSS of the popup system of Joomla.
Add such CSS on your website to prevent that:
#sbox-window, .sbox-content-image, .sbox-content-image img{ height: auto !important; }

The following user(s) said Thank You: csymmonds, PaulR

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

  • Posts: 4
  • Thank you received: 1
8 years 4 months ago #261953

Thank you very much. For other readers, if you are using something like the Purity III template, you need to put the CSS in a file called custom.css located here...

templates/purity_iii/css/custom.css

The following user(s) said Thank You: csymmonds

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

Time to create page: 0.063 seconds
Powered by Kunena Forum