Carousel with images of different sizes

1 reply · opened Mar 9, 2022

IinsertnetMar 9, 2022

Hello

I'm making a website with your template. It is a website that already exists (I did not do it) and now I have been commissioned to make it new.

I need to make a carousel/slider with different contents (texts and images). The "problem" is that the images are of different sizes both in width and height.

I've manually made changes to the code to make it fit but now to get it working perfectly I need the width to fit each item. I have only managed to do it from the browser by manually deactivating the "width" of the "owl-item" class but it is obviously not the solution.

By javascript/jquery code I have tried to remove the width of the element but it has not worked because when removing it it interprets as a "width:auto".

Please can you tell me how I could do it?

I attach screenshots so you can see what I explain.

I await your response so that I can continue with the development work and be able to present the website to my client.

Thank you very much

SSemicolon WebSTAFFMar 10, 2022

Hello,

Thanks for your Patience!

This is Definitely Possible but not included by default. We have modified the Core Codes for you and now Auto Width can be enabled by simply adding the data-auto-width="true" Attribute to the .carousel-widget Element. Simply replace the js/plugins.min.js File with the updated one attached to this reply.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard