WordPress.org

Support

Support » Plugins and Hacks » Carousel Horizontal Posts Content Slider » Thumbnails not show cropped version.

Thumbnails not show cropped version.

  • I am trying to display the thumbnail version of the featured image. However, it isn’t showing up that way. My thumbnail size is 150px x 150px. I have changed the default size within the plugin code to be 150px x 150px as well as the css.

    However, it is squishing the picture or stretching it to fit, instead of using the cropped 150px x 150px version.

    Can you please help me figure out how to adjust this to work?

    http://wordpress.org/extend/plugins/carousel-horizontal-posts-content-slider/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Iduvall i change the carousel-horizontal-posts-content-slider.php file from line 49 where you find these lines:

    if($displayimage=="YES"){
    
    			 if (has_post_thumbnail( $post->ID ) ):
    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'thumbnail' );
    			endif; 
    
    $featured_img = "<img class='aligncenter wp-post-image' src='". $image[0] . "' " . $attributes . " />";
    
    $slider_gallery.= '<a href="'.$post_link.'">'.$featured_img.'</a>';
    		}

    i change line 53 and 57 to show the thumbnail version of the featured image.

    bye
    Maurizio

    i tried the code a few times but didnt get any result.. am i missing sth??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnails not show cropped version.’ is closed to new replies.
Skip to toolbar