Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.