>
Download This Plugin | |
Download Elegant Themes | |
Name | RICG Responsive Images |
Version | 2.1.1 |
Author | The RICG |
Rating | 96 |
Last updated | 2015-02-25 03:21:00 |
Downloads |
2848
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
RICG Responsive Images plugin added 7 kB of resources to the Home page and 7 kB of resources to the sample Post page.
RICG Responsive Images plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! RICG Responsive Images plugin ads no tables to your Wordpress blog database.If you'd like to contribute to this plugin, please do so on Github
Basically, responsive images allow the browser to choose the best image from a list. This plugin works by including all available image sizes for each image upload. Whenever WordPress outputs the image through the media uploader, or whenever a featured image is generated, those sizes will be included in the image tag via the srcset attribute.
Hardcoding in template files
You can output a responsive image anywhere you'd like by using the following syntax:
<img src="pathToImage" <?php echo tevkori_get_srcset_string( TheIdOfYourImage, theLargestImageSizeNeeded ); ?> />
ex.)
<img src="myimg.png" <?php echo tevkori_get_srcset_string( 11, 'medium' ); ?> />