Stop Slider from cropping high images

I have a few slides with images in the dimensions 384x578 pixels. When I use them in a Slider, the images are cropped. How can I stop the slider from cropping the images and displaying them in full height instead? I do not want to use Revolution Slider or Layer Slider WP because I would have to recreate all Slides.

Comments

  • Hello,
    our slider has this value of images set up: 1630px x 860px.
    If you would want to change the image size generated by the slider, you would have to modify the theme files and change PHP code for the featured image sizing.
    thanks
  • Thank you for your answer. I had hoped there was an easier way. I have chosen a dirty approach by simply inserting the original instead of the cropped image into the slider via JavaScript:

    jQuery(document).ready(function() {
    jQuery(".slick-slide > img").each(function() {
    jQuery(this).attr('src', jQuery(this).attr('src').replace("-1630x860", ""));
    });
    });
  • Indeed it is:)
    Remember to make a custom class because many sliders in the theme are .slick-slide.
    I would target it thru a section ID or class.
    thanks
Sign In or Register to comment.