• Resolved Rvervuurt

    (@rvervuurt)


    Hi guys!

    I’m using your plugin to create a slider of a ACF gallery, but I found out that the dimensions of the slider are based on the height of the image it’s trying to display, while I want it to be based on the width.

    In my case, I have 1920*1080 images in my gallery, and the slider is therefore 1080px high.

    However, I want to see the whole image in the slider. It doesn’t have to be 1920 wide, but at least the ratio of width:height should be correct, so the whole image is visible. How do I do this?

    • This topic was modified 7 years, 6 months ago by Rvervuurt. Reason: Signed up for emails
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Anoop Ranawat

    (@anoopranawat)

    Hello,

    Please share your site link,So we will check it properly and find out solution.

    Thanks & Regards
    WP Online Support

    Thread Starter Rvervuurt

    (@rvervuurt)

    Hi there,

    See the slider lower on this page: https://hettest.billetten.dk/?bwps=jorden-rundt-i-80-dage. The images I uploaded are 1920*1080, and that makes the slider 1080px high, while I want it to be 100% width (the whole image has to be visible) and the height has to be according to the ratio of the uploaded image (16:9 for example).

    Kind regards

    Robbert

    Plugin Contributor Anoop Ranawat

    (@anoopranawat)

    Hello,

    Thanks for share site link.
    Please put below css in your themes style.css file
    .fagsfacf-gallery-slider img {
    max-height: 100%;
    max-width: 100%;
    }

    Thanks & Regards
    WP Online Support

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use image width to calculate slider size’ is closed to new replies.