Title: Select image sizes for srcset
Last modified: August 30, 2016

---

# Select image sizes for srcset

 *  [rsmith4321](https://wordpress.org/support/users/rsmith4321/)
 * (@rsmith4321)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/select-image-sizes-for-srcset/)
 * Is it possible to select the image sizes you want included in the srcset, or 
   control this using functions.php. For example my theme adds some sizes like 100px
   thumbnails that I would prefer not included in the image srcset. Thanks for the
   help.
 * [https://wordpress.org/plugins/ricg-responsive-images/](https://wordpress.org/plugins/ricg-responsive-images/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Jasper de Groot](https://wordpress.org/support/users/jaspermdegroot/)
 * (@jaspermdegroot)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/select-image-sizes-for-srcset/#post-6652702)
 * Hi rsmith4321
 * Sorry for the late reply. Yes this is possible.
    The following information is
   based on the 3.0.0 version of the plugin that we just released and it will also
   work in WordPress 4.4 where responsive images will be integrated. You can use
   the `wp_calculate_image_srcset` filter to remove an image from the array that
   is used to create the srcset.
 *     ```
       add_filter( 'wp_calculate_image_srcset', 'my_callback_function' );
   
       function my_callback_function( $sources ) {
           unset( $sources[100] );
           return $sources;
       }
       ```
   
 * I hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Select image sizes for srcset’ is closed to new replies.

 * ![](https://ps.w.org/ricg-responsive-images/assets/icon.svg?rev=1119324)
 * [RICG Responsive Images](https://wordpress.org/plugins/ricg-responsive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ricg-responsive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ricg-responsive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/ricg-responsive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ricg-responsive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ricg-responsive-images/reviews/)

## Tags

 * [breakpoints](https://wordpress.org/support/topic-tag/breakpoints/)
 * [default](https://wordpress.org/support/topic-tag/default/)
 * [featured images](https://wordpress.org/support/topic-tag/featured-images/)
 * [media settings](https://wordpress.org/support/topic-tag/media-settings/)
 * [picturefill](https://wordpress.org/support/topic-tag/picturefill/)
 * [RICG](https://wordpress.org/support/topic-tag/ricg/)
 * [sizes](https://wordpress.org/support/topic-tag/sizes/)
 * [srcset](https://wordpress.org/support/topic-tag/srcset/)
 * [W3C](https://wordpress.org/support/topic-tag/w3c/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jasper de Groot](https://wordpress.org/support/users/jaspermdegroot/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/select-image-sizes-for-srcset/#post-6652702)
 * Status: not resolved