Viewport resizing comes to the WordPress admin bar.
Test your responsive website from the WordPress admin bar. This plugin uses the excellent Viewport Resizer bookmarklet to add a responsive button to the WordPress admin bar. Once pressed you can easily test your site in a range of common viewport sizes (e.g. iPhone, Tablet and Desktop).
The plugin is handy for testing during development and also for writers and editors to preview their content on different devices.
Banner illustration above by Gemma Garner.
To install this plugin:
responsible
folder to the /wp-content/plugins/
directoryAlternatively you can search for the plugin from your WordPress dashboard and install from there.
The plugin has one filter that allows you register a custom bookmarklet. You can generate your own here.
add_filter('responsible_bookmarklet', 'custom_bookmarklet'); function custom_bookmarklet() { return ''; // add your generated JS/HTML here }