Post slider, change aspect ratio

Hi, is there a way to change the aspect ratio of the post slider images? I have a slider showing book covers, and I would like to try a higher / narrower aspect ratio to avoid cropping top/bottom.

(Plan B, is there a way to choose the crop section for individual post slider images?)

Hello,

Can you please provide a link to your website?

Kind Regards, Roman.
aThemes Support

it’s www.gloriaforlag.no.

Hello, thank you for the link.

Your book covers have different aspect ratio, you can try to make it the same.

Kind Regards, Roman.
aThemes Support

Hi, I didn’t manage to find a solution to this one, so I’ll try some more.
The slider images shown have aspect ratio 0,75. (width/height)
My images have aspect ratio between 0,61 and 0,70. Is it possible to choose the aspect ratio of the slider images to be - say 0,66 (2/3) ?

Hello, try to use the following CSS code as a workaround.

You can add CSS code in Customize → Additional CSS section.

.ca-slider .ca-slider_slide img {
    object-fit: contain;
}

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.
aThemes Support

Very nice!! Thanks! This looks very promising.

You are welcome! :slight_smile:

Kind Regards, Roman.
aThemes Support