| | #1 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Thunder Bay ON
Posts: 403
Thanks: 14
Thanked 47 Times in 40 Posts
|
Hey Everyone, Just looking up some info on checking for Mobile Browsers to load a Mobile version of a site. I know you can do it with user_agent, but is there alternatives? thoughts? Thanks, |
| | |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2010
Posts: 153
Thanks: 9
Thanked 17 Times in 17 Posts
|
You can also control the site's appearance via stylesheet. Example would be using a separate stylesheet for iphones. |
| Hello | |
| |
| | #3 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Thunder Bay ON
Posts: 403
Thanks: 14
Thanked 47 Times in 40 Posts
|
Yes, The question is: How can I detect if they are on a mobile browser or not.... If they are THEN load mobile.css... I am also looking for detection of all mobile browsers not just the browser on an iPhone. |
| | |
| |
| | #4 |
| HyperActive Warrior War Room Member Join Date: 2010
Posts: 153
Thanks: 9
Thanked 17 Times in 17 Posts
|
There are various scripts that can do this for you, I haven't tried them out though. Here's a free version and a paid version (free for non-commercial sites). |
| Hello | |
| |
| | #6 |
| WebNinja Join Date: 2010 Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
|
wordpress has plugins for this .. otherwise use the user_agent string from the request.
|
| |
| | #7 |
| Advanced Warrior War Room Member Join Date: 2009
Posts: 499
Thanks: 344
Thanked 150 Times in 126 Posts
|
Unfortunately, MobiSiteGalore is no longer free. They now have a 15-day trial period and 3 different service packs to choose from that range from $8, $12 and $17 per month. WordPress offers a free WP Mobile plugin that gives you more customizable features. |
| Make every day count! | |
| |
| | #8 |
| Magento Certified War Room Member Join Date: 2007 Location: Dayton, OH, USA
Posts: 291
Thanks: 38
Thanked 209 Times in 23 Posts
|
wptouch works for a wordpress site. Other sites, you can use CSS conditional styling: Mobile Browser HTML Code: <link media="only screen and (max-device-width: 480px)" href="small-device.css" type= "text/css" rel="stylesheet"> HTML Code: <link media="screen and (min-device-width: 481px)" href="not-small-device.css" type="text/css" rel="stylesheet"> The full Safari Tutorial is here for you to digest if interested: Safari Web Content Guide: Optimizing Web Content Here is the Wp Touch site. Free To download: WPtouch: Mobile Plugin + Theme for WordPress ยป BraveNewCode Inc. Hope this helps. Later. |
| Ryan Street PHP Developer Specializing in WordPress and Magento | |
| |
|
| Bookmarks |
| Tags |
| browsers, detecting, mobile |
| |