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;
}Unfortunately, that didn’t work. It caused it to repeat the image on both sides.
Attachments: You must be
logged in to view attached files.
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;
}You are most welcome here 🙂
Popular choice Professional Developers At Your Fingertips! If you need services beyond standard support, we've got your back!
Let's get started
Services we offer: Graphic work / visualizations Full WordPress development and design
We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.Got it