开发者 | New Nine |
---|---|
更新时间 | 2013年12月13日 22:27 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 3.8 |
版权: | GPL2 |
版权网址: | 版权信息 |
n9m-adaptive-images
into the /wp-content/plugins/
directory.
Activate the plugin through the 'Plugins' menu in WordPress.
Visit 'Settings -> Media' in your dashboard, copy the .htaccess code, and paste it into your .htaccess file.
You can customize your breakpoints and more by visiting 'Settings -> Media' in your dashboard.
You are now adaptive (and awesome)!Are you sure? You won't see any change in the image url. The "change" happens behind the scene as the plugin loads the appropriately scaled image using the same URL. If you are looking for a different URL on smaller devices, don't - you won't see one. Of course, make sure it's set up properly too :)
Are you sure? You won't see different image sizes just by shrinking and expanding your browser. You need to visit the site from a phone or tablet (or something with a smaller screen) and then check to see that the smaller cached images are (or are not) being created.
You can set them to whatever you want and have as many (or few) as you want; however, you probably want to set them to match your CSS breakpoints.
Your original image in its original size is displayed, just as your site works now.
Any image you put in a page, post, or custom post type, and any image that is uploaded through your media uploader. Out of the box, any image that has been uploaded through your media uploader will become adaptive. If you know more advanced .htaccess directives, you can customize this further.
No. Just turn it on, update your .htaccess, and the plugin handles everything. You just add your images as you normally do. When they are accessed by a visitor, the plugin kicks in and handles the replacement, caching, etc.
You need to log into your server through your control panel's file manager or via FTP. In the directory where WordPress is installed, you should find a file called .htaccess. Open it, put in the directive we gave you under 'Settings -> Media', and save the file.
Visit Adaptive Images website to understand the innerworkings of the code and browser interaction. You can also visit our WordPress tutorials to learn more.
No. The plugin only makes a few small options entries in your database which means it won't bloat your installation. On your site, Adaptive Images includes a 140 byte JavaScript file in your header.
Nothing. They appear normally and your site functions and looks as it did before you used the plugin. If you uninstall the plugin, the options are removed from your database to keep your WordPress clean. No bloat here!