Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

iPhone Viewport Meta

iPhone Viewport Meta helps optimize your WordPress install for the iPhone and iPod Touch by inserting the meta viewport element into the head element


iPhone Viewport Meta does the following:

  • if a request comes from an iPhone or iPod Touch it adds a meta tag and additional styles definitions to optimize content for that browser and it scrolls the location bar up and out of the way after the page loads
  • it adds a template tag you can use in your theme to manage inclusion or exclusion of content


This plugin has no configuration settings.

Template Tags

This plugin defines a template tag that can be used to prevent generation of content such as sidebars, when viewed by iPhones and iPod Touch:

<?php if (!function_exists('weh_is_iPhone') || (function_exists('weh_is_iPhone') && !weh_is_iPhone())) : // don't send extra bits to iPhone ?>
    <?php get_sidebar() ?>
<?php endif; // testing for iPhone ?>


No hooks or APIs are defined by this plugin.

Known Issues

  • This plugin works best with themes derived from Sandbox (http://www.plaintxt.org/themes/sandbox/)
  • You will need to use the weh_is_iPhone() template tag to control the display of sidebars.
  • This plugin depends on the user agent string sent by mobile Safari.


James Craig, http://cookiecrook.com/ Donny Cruce, http://yoshiki.tv/

Anything else?

iPhone and iPod Touch are trademarks of Apple, Inc.

--Bill Humphries


Requires: 2.2 or higher
Compatible up to: 2.3.2
Last Updated: 9 years ago
Active Installs: 40+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.