![]() |
(http://www.codingforums.com/forumdisplay.php?f=70)
Hot to recognize that your site is viewed on mobile device.
I have a site for mij store www.degoudwaag.nl. I am using WordPress and I now want to go mobile with my site. My first question is (and sorry if it has been asked before, haven't found it): how can you get Wordpress to recognize that my site is viewed on a mobile device and how to redirect to i.e. an "m.address.com" address in that case?
Many thanks! |
If you download this file and put it into your site and then put this into your index.php file:
It needs to end with .php or else the script won't work PHP Code:
This will redirect any mobiles or tablets to your mobile version of your site. More info on how you can use the Mobile_Detect.php file can be found here. Important notes: The file needs to be unzipped, and the content is going into your server. |
Wordpress has several plugins that provide this functionality. Here is one of them:
http://wordpress.org/extend/plugins/wptouch/ |
Thanks for your replies guys! Eventually I decided to go with dudamobile.com. It costs a few bucks a year but is easy to implement and yield beautiful results. I am now considering doing that for my other website as well.
|
| All times are GMT +1. The time now is 12:25 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.