Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to disable mobile theme for iPads?

0 votes
asked Mar 8, 2012 in Q2A Core by krals
I"m using the Google-style Mobile Theme for mobile users. I want people on phones to use it but would like iPad (and others with similar resolution) to see the non-mobile layout. Is it possible with a quick mod? I'm not up to making a plugin/layer/whatever.
Q2A version: 1.5
commented Mar 30, 2012 by kaba101
I think so too!
iPad must shows PC theme.

1 Answer

0 votes
answered Mar 31, 2012 by gidgreen

The function qa_is_mobile_probably() in qa-base.php will be the cause of this. I'm not sure which part of it is misidentifying the iPad as a mobile browser, but perhaps you can experiment and let us know.

commented Mar 31, 2012 by krals
Interesting. I see that the stuff in that function is inspired by http://dangerousprototypes.com/docs/PhpBB3_MOD:_Replacement_mobile_browser_detection_for_mobile_themes . That code is written specifically to exclude iPads, but that part of it didn't make it into q2a... Unfortunately I'm not sophisticated enough to figure out what to do.