• Hi there

    Apart from the main / desktop theme I have setup two additional / separate theme folders (1 folder for smartphone / handheld and the other for feature phone / low-support phones ). I then went to the device theme settings and set the templates as follows:

    – Handheld Theme = Handheld
    – Tablet Theme = Handheld
    – Low-Support Theme (additional options) = Feature

    I am using the “UA Spoofer” Google Chrome plugin to switch between device outputs, on the web-page (plugin works 100%).

    *The problem: when switching to low-support devices (on UA Spoofer plugin), the web page simply brings up what is contained in the HANDHELD theme, and not the FEATURE theme.

    PS: in each theme file i have an index.php file which quite simply has a piece of text, serving as a marker to tell me if the current device viewed (from UA Spoofer plugin), is corresponding to the theme set in word press (device theme settings).

    So to confirm, when toggling with UA Spoofer options, the desktop and mobile / smart phone options bring up the correct text / theme, but not when viewing for low-support / feature phone options (IE when viewing for these devices the mobile / handheld theme text comes up instead of the feature theme text).

    Any help would be appreciated.

    Julian

    http://ww.wp.xz.cn/plugins/device-theme-switcher/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author James Mehorter

    (@jamesmehorter)

    Hi Julian,

    Can you tell me which User Agents you’re using spoofing as?

    Does your ‘Feature’ theme display if you use the Device Theme Switcher URL Parameters? I.e. yoursite.com?theme=low_support (You can get back by visiting yoursite.com?theme=active)

    FYI, you don’t need a plugin for spoofing the UA, it’s a feature already built into Chrome, check this out: http://www.howtogeek.com/113439/how-to-change-your-browsers-user-agent-without-installing-any-extensions/

    Thread Starter julianhansby

    (@julianhansby)

    Hi James

    Thank you SO MUCH for the speedy response. Really appreciate it 🙂

    After sending this post I went onto your Github repo and saw the URL parameter options (Eg “…?theme=blah”) and that seems to work like a charm, IE as I change the setting in WP the page (with URL param in line above), the actual web page reflects that….so GREAT STUFF 🙂

    So (you are most probably correct) it leads me to believe that the setting in my UA Spoofer plugin (for low support phone), is incorrect (I’ve added a string for a Samsung GT-E2350 device).

    I will try your approach from the howtogeek URL provided and see where that takes me. But at least I can now say that I do not have to continue looking for an alternative plugin and just ensure that I get a low support UA working, coz that is (a big) part the client requirement — to make it work on low support phones as well.

    Thanks again James 🙂

    Will keep you posted on the UA testing for LS…

    Thread Starter julianhansby

    (@julianhansby)

    …sorry James, could you perhaps provide an example or two (maybe URL) of where I can find user agent strings for low-support phones?

    I can see that the built-in chrome UA option works well, but I think I might be using incorrect UA strings in the console. (I’m googling trying to find UA strings for LS phones, but it doesn’t seem to be the easiest thing to do). I just need one correct string to test.

    Thanks

    julian

    Plugin Author James Mehorter

    (@jamesmehorter)

    Hi again Julian,

    DTS uses the MobileESP library to detect the User Agent strings, and you can view the User Agent string list here: http://blog.mobileesp.com/?p=384

    Right now in DTS for a device to be ‘low support’ the following methods of MobileESP must return true: DetectTierOtherPhones() and DetectBlackBerryLow()

    Also, I see now that I could probably expand the low support detection in DTS to catch a wider array of low support devices. I’ll try to take a closer look this weekend. However, in the meantime-If you felt confident enough and are in a rush, you could try modifying line 70 in wp-content/plugins/device-theme-switcher/inc/class.switcher.php to use other MobileESP methods (as defined in that UA string list I linked to above).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Low-Support / Feature Phone plugin support’ is closed to new replies.