Awesome plug-in and works great except!
When Google does mobile search ranking, it did not pick up properly on the mobile version of the site. Google did see there was a mobile version, but the site was tested as if the desktop template was active. URL is
Yes the template switch does work if I test the site on a mobile phone, but if I use Google Chrome development environment, it only switches to the mobile version if I pick a specific device.
Hopefully I explained this clearly, and the only reason I bring it up because Google is reducing the site's mobile ranking.
I have attached a screen shot form google webmaster.
I understand what you are talking about but: this plugin uses the PHP library "Mobile Detect" (
) to detect when the browsing device is mobile or not.
So if you try to browse the website with a desktop browser, resized like a smartphone, the shown template will be still the desktop template, because "Mobile Detect" doesn't detect the screen sizes but the device.
The only way I have in mind to solve that is to check if Google scrapes mobile pages with a "different simulated device" than the desktop one. If so, the plugin could be modified to let Google to see the mobile template. Otherwhise, if Google scans mobile sites with the "same virtual device" isn't possible to let this plugin to switch the template for Google.
I've fastly looked in my source code. I think you can try to put this code at row 88 replacing the existing in file "digi_template_switch.php":
if ( $detect->isMobile() || $detect->isTablet() || $detect->is('MobileBot') )
I haven't found a big documentation about detecting bots with "Mobile Detect" library.
If the code above doesn't work, the problem (maybe) can be solved by detecting the user agent.
The only problem is the time to do that. At the moment we are full of work.
If you are able, you can try yourself by these solutions (and maybe share here for other users), otherwise I will do it in the future releases of this plugin, but I can't say when exactly.
Please let me know
Thanks for using our plugin and to be interested in improving it.