Title: Two different image sizes?
Last modified: August 21, 2016

---

# Two different image sizes?

 *  [Naomi Niles](https://wordpress.org/support/users/nomi/)
 * (@nomi)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/)
 * I’m using the testimonials widget in the sidebar and also on a page using the
   shortcode: [testimonialswidget_list]
 * Is there a way to make the images in the widget and the ones on the page have
   two different sizes? Everything I’ve found changes them globally.
 * Or, ideally, it would be great to have the full-size images on the page with 
   the shortcode.
 * Thanks!
 * [http://wordpress.org/extend/plugins/testimonials-widget/](http://wordpress.org/extend/plugins/testimonials-widget/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817532)
 * Nomi,
 * You can use a filter to set image size for particular pages via `is_single` or`
   is_page( 123 )` type checks.
 * See [https://aihrus.zendesk.com/entries/23677122-How-do-I-change-the-image-size-](https://aihrus.zendesk.com/entries/23677122-How-do-I-change-the-image-size-).
 *  Thread Starter [Naomi Niles](https://wordpress.org/support/users/nomi/)
 * (@nomi)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817537)
 * Thanks, Michael!
 * I tried using is_page() as referenced here:
    [WordPress forum post](http://wordpress.org/support/topic/plugin-testimonials-widget-testimonials_widget_image_size-not-working-in-functionsphp?replies=6)
 * It’s not working for me though. If I remove the conditional, it works, but not
   with it.
 * Here’s what I have:
 *     ```
       if ( is_page() ) {
       add_filter( 'testimonials_widget_image_size', 'my_testimonials_widget_image_size' );
   
       function my_testimonials_widget_image_size( $size ) {
           $size                       = array( 575, 350 );
   
           return $size;
       }
       }
       ```
   
 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817550)
 * Did you read how to use `is_page` at [http://codex.wordpress.org/Function_Reference/is_page](http://codex.wordpress.org/Function_Reference/is_page)?
 * You’re missing a page number or slug name.
 *  Thread Starter [Naomi Niles](https://wordpress.org/support/users/nomi/)
 * (@nomi)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817561)
 * I thought that if you use it without the page number or slug than it means it
   applies to any page?
 * It’s still not working with the number or the slug though. Here’s the code I 
   have now:
 *     ```
       if ( is_page('reviews') ) {
       add_filter( 'testimonials_widget_image_size', 'my_testimonials_widget_image_size' );
   
       function my_testimonials_widget_image_size( $size ) {
           $size                       = array( 575, 350 );
   
           return $size;
       }
       }
       ```
   
 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817562)
 * Are you sure you’re on a page? Is the page actually an archive? If so, look at
   the bottom of the `is_page` URL for alternate conditionals to work with.
 *  Thread Starter [Naomi Niles](https://wordpress.org/support/users/nomi/)
 * (@nomi)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817563)
 * Hmmm, yep, it’s definitely a page. Weird, right? I think I’m going to just resize
   the widget images via css instead.
 * Sorry for being a pain. Thanks for the help!
 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817568)
 * Got url?
 *  Thread Starter [Naomi Niles](https://wordpress.org/support/users/nomi/)
 * (@nomi)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817581)
 * Here you go: [http://www.primalfitmiami.com/dev/reviews/](http://www.primalfitmiami.com/dev/reviews/)
 *  Plugin Contributor [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817672)
 * Did you try the page id instead of reviews? It seems you’ve got a non-root site
   happening and I don’t know how WordPress works with that.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Two different image sizes?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/testimonials-widget_c56561.svg)
 * [Testimonials Widget](https://wordpress.org/plugins/testimonials-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/testimonials-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/testimonials-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/testimonials-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/testimonials-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/testimonials-widget/reviews/)

## Tags

 * [image size](https://wordpress.org/support/topic-tag/image-size/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 9 replies
 * 2 participants
 * Last reply from: [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/two-different-image-sizes/#post-3817672)
 * Status: not resolved