PDA

View Full Version : Disable Default Mobile Style in iPad & Tablet


induslady
06-09-2015, 08:34 AM
Hello,

How could I disable Default Mobile style on Tablets & iPad? Tablets are plenty large enough to view the full site without needing the mobile design. I'd like to remove the mobile accessibility feature from these gadgets.

I found the mobile redirection call in the includes/init.php file specifically the below
if (
$mobile_browser
AND
preg_match('/(ipad|ipod|iphone|blackberry|android|pre\/|palm os|palm|hiptop|avantgo|plucker|xiino|blazer|elaine |Windows Phone OS|htc)/i', strtolower($_SERVER['HTTP_USER_AGENT']))
)
{
$mobile_browser_advanced = true;
}

but I'm not sure how do I go about doing it.

Thanks in advance,

Black Snow
06-09-2015, 10:08 AM
Haven't tried this but just delete ipad etc from the list:
if (
$mobile_browser
AND
preg_match('/(ipod|iphone|blackberry|android|pre\/|palm os|palm|hiptop|avantgo|plucker|xiino|blazer|elaine |Windows Phone OS|htc)/i', strtolower($_SERVER['HTTP_USER_AGENT']))
)
{
$mobile_browser_advanced = true;
}

induslady
06-09-2015, 10:26 AM
Hello,
Thanks for the response but what about the other android tablets?

Black Snow
06-09-2015, 10:44 AM
Your best bet is to use this: https://vborg.vbsupport.ru/showthread.php?t=292704