Gallery Slider Image Height

Home Forums Jevelin Theme Gallery Slider Image Height

Home Forums Jevelin Theme Gallery Slider Image Height

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    RESOLVED Posts
  • Jen520
    Participant

    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

    Jen520
    Participant

    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;
    }

    Jen520
    Participant

    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.

    Jen520
    Participant

    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;
    }

    Jen520
    Participant

    That worked. Thank you.

    You are most welcome here 🙂

Viewing 9 posts - 1 through 9 (of 9 total)