I am just using theme switching (despite it not being recommended), but need the option to override by adding ?mobile=false to the url, for example.

I have added this snippet to the end of _mobile_tools_is_mobile_device() function.

if ($_GET['mobile'] == 'false') $mobile_browser = 'desktop';

just before

 $result = $mobile_browser;
 return $result;

Is this something that should/could be added as standard?

Comments

twom’s picture

Status: Active » Fixed

Currently the ?mobile=false is not used anymore.

From now you can use the ?device=mobile, ?device=desktop functionality!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.