In this day in age, most web visitors are now coming from cell phones or mobile devices. You need to have a version of your website that is designed for mobile devices. One of the major issues with this is having the ability to detect if the browser is a mobile device. There are hundreds of different browsers out on mobile devices right now, so I found the following website to help with this:
http://detectmobilebrowsers.com/
This site has the open source code you can use to add to your main webpage. If the webpage detects it is a mobile device, it will automatically redirect to the mobile version of the page.
The following is the .PHP example of this:
No comments:
Post a Comment