Carousel -two instances with diferent image sizes

  • Posts: 107
  • Thank you received: 3
11 years 2 months ago #128797

Hi. I have two carousels with diferent image sizes, one of 850x200 and other with 200x150. If I create and image of 850x200 it shows ok in the big carousel, but very small in the little one. Can I create two image sizes and select one for the big carousel an other fot the little one? Can I select the image number (order) that will show in each carousel?

Please help. Thanks.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #128816

Hi,
The solution will probably be to use 850x200 images for your products, and set different values through the "Image width/height" option of your carousel content module ("Hikashop->Display->Content modules->'Your carousel content module'").

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

  • Posts: 107
  • Thank you received: 3
11 years 2 months ago #128818

Hi , thanks for the answer. I've tested with 850x200 images, but in my 200x150 carousel the image gets the 200 width and redraw the heigh proportionally, so the image looks very small. Isn't there a way that I could say to each carousel the image I want to dsiplay (order)? Maybe modifyng some code?

Thanks.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #128971

Hi,

By default the carousel is based on the width to have the same width for each images.
This width is used by the javascript code to scroll to the next one. We don't calculate the width of each images to adapt the scroll, we use a fixed value.

But you can edit the way it's working by editing the view "product / carousel".

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

Time to create page: 0.076 seconds
Powered by Kunena Forum