Home › Forums › Jevelin Theme › Gallery Slider Image Height
Home › Forums › Jevelin Theme › Gallery Slider Image Height
Is there any way to increase the height of the portfolio gallery slider so that my image isn’t cropped? Thank you in advance.
Hi @Jen520,
I hope you are well today and thank you for your question.
Could you please share me the page URL from your site where it is displaying so that i can help you to achieve it?
Best regards,
Shufflehound team
This page for example: http://jenniferjohnsonart.com/project/green-river-ordinance/
The original image is 1920 x 1400. The gallery slider cuts off the top and bottom of the image. I don’t want to have to resize all my portfolio images if I can help it. Is there a way to modify the height of the slider?
You can achiev it by adding the following CSS code in the Custom CSS code option of your theme on the below path.
Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code
.sh-portfolio-single-slider .sh-ratio-content {
background-size: contain;
}
Is there a way to plug in a custom size for the gallery slider?
Solution for this topic
Try using below CSS code instead of above shared.
.sh-portfolio-single-slider .sh-ratio-content {
background-size: contain;
background-repeat: no-repeat;
}
That worked. Thank you.
You are most welcome here š