Responsive Slider
Rsponsive Slder not adapring to my width and height settings (5 posts)

  1. databell96
    Posted 3 years ago #

    I'm having a big problem with the respnnsive slider on this site. I changed the settings to 516x326 but the slider still think it's using the defaults. So there's huge gaps everywhere on my page as a result. I trashed all of my slides and then added them all over again. No change. It still thinks its' using the default settings. How do I change this?


  2. paesano2000
    Posted 3 years ago #

    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 {
  3. databell96
    Posted 3 years ago #

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

  4. jdlintz
    Posted 3 years ago #

    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' ) );

  5. alexpatin
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Responsive Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic