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?

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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