plugins
WPtouch iPhone Theme (part 2)
On 06, Jan 2010 | 3 Comments | In plugins, wordpress | By abcoder
This a continuation from my previous post on WPtouch. In that post I explained how to add additional user agent support by modifying the wptouch.php. Also I mentioned the pain associated with this method – each time you update the plugin you have to edit the $useragents array. I suggested to give an option in the admin panel to add extra user agents. I’m not sure – may be after seeing my post WPtouch decided to give an option for that in the admin panel
Here is the good news – yes now you can add “Custom User-Agents” to WPtouch! Below is a screen-shot from ABCoder’s WPtouch settings:

I’ve added these user-agents:
playstation, samsung, wap, windows ce, wm5 pie, iemobile, symbian, series60, series70, series80, series90, blackberry, midp, wml, brew, brew, xiino, blazer, pda, nitro, netfront, sonyericsson, ericsson, sec-sgh, docomo, kddi, vodafone
A really handy way to check whether it is working or not – add webkit at the end (certainly with a comma before it) and visit your site from Google Chrome. If you see the iPhone version everything is perfect! Don’t forget to remove “webkit” before you go live.
-
Some of the user agents are now obsolete. Anyway a great list nonetheless! BTW were you able to add admob ads manually in wptouch?
-
Really? I’ve just added all useragents as in the post content. How can we get all active list? By the way, this is a great post that I’ve been searching for. Thanks a lot.
-
-
Hey there! I’ve been following your weblog for a long time now and finally got the bravery to go ahead and give you a shout out from Porter Texas! Just wanted to mention keep up the good job!
Submit a Comment
© Copyright 2012 ABCoder |













Comments