WordPress.org

Support

Support » Plugins and Hacks » Responsive Slider » Rsponsive Slder not adapring to my width and height settings

Rsponsive Slder not adapring to my width and height settings

Viewing 4 replies - 1 through 4 (of 4 total)
  • I used those same settings and it seems to change nothing. I’m not sure if the author has even implemented the height and width setting.

    It is a responsive slider though, and it will expand to the size of the container it is in.

    So try setting the width and height of the flexslider with css:

    .flexslider {
    width:516px;
    height:326px;
    }

    Nope. That didn’t change anything. It still sees the original defaults. How can I correct this?

    Same problem here. I believe it has to do with the plugin performing it’s own ‘add_image_size’ function at line 303

    function responsive_slider_image_sizes() {
    	$options = get_option( 'responsive_slider_options' );
    	add_image_size( 'slide-thumbnail', $options['slide_width'], $options['slide_height'], true );
    }

    This is what crops the uploaded image to the requested size. The author does warn us to set the image size before we start making slides, but we’re apparently out of luck if we change our mind later.

    The plugin options do get updated when you change the width and height values, but the dimensions of the inline outputted image are pulled from the ‘slide-thumbnail’ size option on line 262

    $slider .= get_the_post_thumbnail( $post->ID, 'slide-thumbnail', array( 'class' => 'slide-thumbnail' ) );

    Until the author fixes this, I’ve hacked a solution by simply changing the ‘size’ parameter of ‘get_the_post_thumbnail’ from ‘slide-thumbnail’ to ”, thus making it choose the full size image and letting me resize via css elsewhere.

    $slider .= get_the_post_thumbnail( $post->ID, '', array( 'class' => 'slide-thumbnail' ) );

    I know this is a really old post, but the author probably just needed to regenerate thumbnails.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rsponsive Slder not adapring to my width and height settings’ is closed to new replies.
Skip to toolbar