Support » Plugin: GC Testimonials » Image as link to full size image?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author devnz

    (@eringarscadden)

    To do this, you will need to edit the plugin file.

    Open testimonials.php, and look for this code at around line 326:

    if(has_post_thumbnail($testimonial->ID)) {
    	$display .= '<div class="photo">'.get_the_post_thumbnail($testimonial->ID, array(100, 100)).'</div>';
    }

    and change with this:

    if(has_post_thumbnail($testimonial->ID)) {
    	$lrge_img = wp_get_attachment_image_src( get_post_thumbnail_id($testimonial->ID), 'large');
    	$display .= '<div class="photo"><a href="'.$lrge_img[0].'">'.get_the_post_thumbnail($testimonial->ID, array(100, 100)).'</a></div>';
    }

    Please note that if you update the plugin at a future date, this change will be overwritten.

    Wow, yessssss, that’s it.

    It’s realy what i was looking for.
    Thank you very much.

    Ger

    tgd

    (@terrydaisydesignsca)

    Thanks for this. Should be part of the core of the plugin.

    tgd

    (@terrydaisydesignsca)

    I’ve taken this a bit further and added a lighbox plugin, then added the rel=”lightbox” attribute to the a tag. I have it in use on this demo site: http://temples.daisydesigns.ca/testimonials/.
    Good options to add to the single testimonial.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image as link to full size image?’ is closed to new replies.