WordPress.org

Forums

GC Testimonials
[resolved] Image size on testimonial page (8 posts)

  1. chill986
    Member
    Posted 2 years ago #

    Is there an easy way to use the medium sized image on the testimonials page instead of a thumbnail? They are far too small to draw any kind of interest for the kind of site we have.

    Also, the widget images are cropped to 75x75 cutting off the heads of some of our testimonial submitters - not good at all.

    http://wordpress.org/extend/plugins/gc-testimonials/

  2. chill986
    Member
    Posted 2 years ago #

    Nevermind, I found the code and changed from array(75,75) to 'thumbnail' and array(100,100) to 'medium'.

  3. mavs-fan
    Member
    Posted 2 years ago #

    chill986,

    Exactly what lines of code did you change to make the thumbnails appear larger on the testimonials page? Thanks in advance for the help. We've had the same issue.

  4. chill986
    Member
    Posted 2 years ago #

    mavs-fan, find "get_the_post_thumbnail" in testimonials-new.php. There will be two occurrences. One will have array(100, 100) as a parameter (around line 326), and the other will have array(75, 75) (around line 747). I changed the first to 'medium' and the second to 'thumbnail'.
    example:
    // $display .= '<div class="photo">'.get_the_post_thumbnail($testimonial->ID, array(100, 100)).'</div>';
    $display .= '<div class="photo">'.get_the_post_thumbnail($testimonial->ID, 'medium').'</div>';

    // echo '<div class="photo">'.get_the_post_thumbnail($testimonial->ID, array(75, 75)).'</div>';
    echo '<div class="photo">'.get_the_post_thumbnail($testimonial->ID, 'thumbnail').'</div>';

    let me know if that works for you.

  5. gheimans
    Member
    Posted 2 years ago #

    tnx chill986, this worked out for me too.

  6. chill986
    Member
    Posted 2 years ago #

    Glad to help!

  7. pmgb
    Member
    Posted 2 years ago #

    I tryed both solutions. they don't work for me. Any other idea?

  8. chill986
    Member
    Posted 2 years ago #

    Make sure you don't try one or the other - make sure you change both.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GC Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic