• Register
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
146 views
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
asked Mar 8, 2012 in Q2A Core by krals
I think so too!
iPad must shows PC theme.

1 Answer

0 votes

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.

answered Mar 31, 2012 by gidgreen
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.
...