WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a wordpress site with a customized login page, the problem is when I go to that page on my iPhone, it detects it as an iPhone and adds the viewport meta tag, which normally would be great but this particular login page I want to be viewed full sized and zoomable, not iPhone sized and non-zoomable. So I need to remove the iPhone detection from the login page without modifying the wordpress core. Anybody have any ideas?

share|improve this question

Found a solution. Add this to the functions file:

function remove_iphone_detection() {
    global $is_iphone;
    $is_iphone = false;

add_action('init', 'remove_iphone_detection');

Though this removes iphone detection from wordpress a a whole, not just the login page, it achieved what I needed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.