Support » Plugin: Testimonials Widget » Size of Featured Image

  • Resolved TSemmes


    Currently the featured image is displayed as a cropped thumbnail. I want the full image to show. I am using the Featured Image for company logos. I want the entire logo (with some limits on max-height and max-width) to be displayed centered above the testimonial. Possible? Will I need to edit your source files?

Viewing 1 replies (of 1 total)
  • Plugin Author Subharanjan


    There’s a theme template replacement option for changing testimonials layout and different parts of the testimonials display. You can modify testimonial’s templates by copying the original files from wp-content/plugins/testimonials-widget/templates into your child theme’s directory, like for eg. wp-content/themes/twentytwelve-child/testimonials-widget.

    Please edit the code inside the template file testimonial-image.php with the code below: ( Please modify as per your need )

    global $tw_template_args;
    $testimonial = $tw_template_args['testimonial'];
    if( ! empty( $testimonial['testimonial_image'] ) ) {
    	$large_thumb_url = '';
    	if ( has_post_thumbnail( $testimonial['post_id'] ) ) {
    		$large_image = get_the_post_thumbnail( $testimonial['post_id'], 'large' );	
    <span class="image"><?php echo $large_image; ?></span>

    If these don’t help, please check out the API for more customization options.

Viewing 1 replies (of 1 total)
  • The topic ‘Size of Featured Image’ is closed to new replies.