Responsify WP


Responsify WP is the WordPress plugin that cares about responsive images.


  • Use img with srcset/sizes attributes.
  • …or the picture element.
  • Works with or without Picturefill.
  • Supports high resolution images (retina).
  • Custom media queries.
  • Handpick which image sizes to use.
  • Responsive background images.


Responsify WP finds featured images and all images inside the content and makes them responsive.
For example, you might have a template that looks like this:

    <h1><?php the_title();?></h1>
    <?php the_content();?>

That will output something like this:

    <h1>Hello world</h1>
    <p>Lorem ipsum dolor sit amet...</p>
    <img src="large.jpg" alt="Image description">

But once you have activated the plugin, it will look like this instead:

    <h1>Hello world</h1>
    <p>Lorem ipsum dolor sit amet...</p>
    <img sizes="(min-width: 300px) 1024px, (min-width: 150x) 300px, 150px"
        srcset="thumbnail.jpg 150w,
        medium.jpg 300w,
        large.jpg 1024w"
        alt="Image description">

You can also choose to use the picture element instead:

    <h1>Hello world</h1>
    <p>Lorem ipsum dolor sit amet...</p>
        <source srcset="full-size.jpg" media="(min-width: 1024px)">
        <source srcset="large.jpg" media="(min-width: 300px)">
        <source srcset="medium.jpg" media="(min-width: 150px)">
        <img srcset="thumbnail.jpg" alt="Image description">

It also works with high resolution (retina) images:

    <h1>Hello world</h1>
    <p>Lorem ipsum dolor sit amet...</p>
        <source srcset="full-size.jpg" media="(min-width: 1024px)">
        <source srcset="large.jpg, large_retina.jpg 2x" media="(min-width: 300px)">
        <source srcset="medium.jpg, medium_retina.jpg 2x" media="(min-width: 150px)">
        <img srcset="thumbnail.jpg, thumbnail_retina.jpg 2x" alt="Image description">

The different versions of the image in the examples above is in the standard thumbnail, medium, large and full sizes.
The media queries are based on the width of the “previous” image.
Any custom sizes of the image will also be found and used.


You can select which image sizes that the plugin should use from the RWP settings page.
These settings can be overwritten from your templates.


// Using get_posts()
$posts = get_posts( array(
    'post_type' => 'portfolio',
    'rwp_settings' => array(
        'sizes' => array('large', 'full')
) );
foreach( $posts as $post ) {
    // ...

// Using WP_Query()
$query = new WP_Query( array(
    'category_name' => 'wordpress',
    'rwp_settings' => array(
        'sizes' => array('large', 'full')
) );
if ( $query->have_posts() ) {
    // ...

Available settings:

  • Select which image sizes to use.
  • Set/override attributes.
  • Set custom media queries.
  • Turn on/off retina.
  • Ignore image formats.


RWP provides a number of functions that can generate responsive images in your templates.
Let’s say that you have the following markup for a very large header image:

    <?php the_post_thumbnail( 'full' ); ?>

As you probably know, the_post_thumbnail() will create a regular <img> tag with the full-size image in this case.
But you don’t want to send a big 1440px image to a mobile device. This can easily be solved like this:

    $thumbnail_id = get_post_thumbnail_id( $post->ID );

    // Generate an <img> tag with srcset/sizes attributes.
    echo rwp_img( $thumbnail_id );

    // Generate a <picture> element
    echo rwp_picture( $thumbnail_id );



Documentation and examples


  • PHP 5.3


  • Select which filters that RWP should be applied on. Thumbnails (post_thumbnail_html) and content (the_content) is used by default.You can also select which markup pattern RWP should generate.
  • Select which filters that RWP should be applied on. Thumbnails (post_thumbnail_html) and content (the_content) is used by default.You can also select which markup pattern RWP should generate.
  • You can easily override the default media queries for each image size. You can specify different settings for different scenarios.


Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘Responsify WP’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download
  2. Extract the responsify-wp directory to your computer
  3. Upload the responsify-wp directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard


Best plugin and more than perfect support

I had many problems and many of theese were because I’m not an informatic expert.
I received help for everyone of theese.
The support team is very patient and helpfull to solve every problem I had.

I advice the plugin to averyone.

Best Of Its Kind

I tried many different plugins before i found this one, and it’s easily the best of the bunch. It allowed me to add srcset to all the images on my website which wasn’t done by default with my theme. As other reviewers have said, the plugin author is very helpful and definitely lives up to the claim that Responsify WP cares about responsive images!

Still useful after WordPress 4.4 and SUPERB support!

The current WordPress responsive image implementation only inserts srcsets for your images when the aspect ratio differs by less than 0.002.

If you wish to insert srcsets where the images’ aspect ratios differ by greater than 0.002, this plugin is a must! If you theme already creates a ton of image sizes and you don’t want to waste them this plugin is for you.

The rwp_add_filters filter with the included snippet in the documentation allows you to apply the srcsets to images used by other plugins and widgets.

Further, the author provides fantastic support on the forums – bugs are fixed quick.

This is a great plugin with great support!

Read all 16 reviews

Contributors & Developers

“Responsify WP” is open source software. The following people have contributed to this plugin.




  • Renamed the Logger class to Responsify_WP_Logger. Thx to @victorsebrito!


  • Fixed a bug in the Custom Media Queries interface.
  • Support for WordPress 4.7


  • Critical PHP 5.3 bugfix


  • Bugfix. All image sizes was used if the one inserted through the editor wasn’t selected by the user.


  • Bugfix, Custom Media Queries.
  • Support for WordPress 4.4


  • Updated the Picturefill polyfill to version 3.0.1.


  • New feature: Debug mode. RWP adds an HTML comment with information about the image.
  • Bugfix. Retina + specified image.
  • Bugfix. The rwp_edit_generated_element filter is applied when calling rwp_img() and rwp_picture().


  • Bugfix for the custom media query interface in Safari.
  • The ability to deselect the full image size is back. (Accidentally removed in RWP 1.9)
  • Minor improvements.


  • Introducing a brand new user interface for managing custom media queries for the images.
  • New filter: rwp_edit_generated_element. It allows you to make changes to the generated element before it’s inserted into the content.
  • Tested with WordPress 4.3 beta 3.
  • Improvements under the hood.


  • Picture::create() has been replaced by rwp_img(), rwp_picture(), rwp_span(), rwp_style() and rwp_attributes(). (Picture::create() will still work)
  • New filter: rwp_edit_attributes. It allows you to edit the attributes before they are applied to the generated element.
  • Picturefill has been upgraded to version 2.3.1.
  • Bugfixes and improvements.
  • Tested with WordPress 4.2
  • Thanks to @mawosch for the help with this release.


  • Picture::create(‘attributes’) works with custom settings now.
  • Bugfix: RWP should not be applied on RSS feeds.


  • New: RWP will ignore images with the ‘rwp-not-responsive’ class.
  • Bugfixes.


  • Bugfix. The $content_width variable in functions.php could make the generated markup to be slightly incorret.


  • Works on featured images out of the box.
  • Apply RWP on custom content filters using the rwp_add_filters filter.
  • Support for high resolution (retina) images.
  • Picture::create(‘attributes’) returns only the generated attributes.


  • Critical PHP 5.3 bugfix


  • Bugfix. The default value of the sizes attribute didn’t work as expected in browsers with native support.
  • Minor bugfixes and improvements.
  • Added the ability to disable Picturefill.


  • Updated Picturefill to version 2.2.0
  • Minor bugfixes
  • Tested with WordPress 4.1


  • Added the ability to ignore image formats.
  • Bugfixes.


  • Critical bugfix. If the picture element was selected before 1.6.0, it stopped working.


  • RWP now supports the sizes/srcset attributes. It’s the new default markup pattern.
  • Bugfixes and improvements.


  • Bugfix. Custom media queries works with the picture element now.


  • All attributes on the original img tag are now preserved and passed on to the new element.
  • External images will be ignored.
  • Bugfixes
  • Thanks to habannah for all of her help with pointing out issues with RWP.


  • Now it’s possible to select if you want to use span or the real picture element.
  • It’s also possible to only use the Picture::create() without replacing any img tags in the content.
  • Bugfixes.


  • Bugfix. If an image is beeing inserted by a shortcode, the generated markup could be replaced.


  • Bugfix. On PHP 5.3.28, the plugin could make the site crash. Not anymore!


  • Bugfix. If an image doesn’t exists in a selected size, WordPress returns the full size image instead. That would break the media queries.
  • Tested with WordPress 4 beta 2.
  • Improved documentation.


  • Now it’s possible to set custom media queries.


  • Settings can be passed in the query.


  • The content filter now works on PHP 5.3