Jim R Posted November 15, 2012 Share Posted November 15, 2012 I searched, and there isn't much and nothing really current. Is there a code that I could use to hide specific content based on what device my User is using? Specifically, if the the User is using a mobile phone browser. Something along the lines of: if ( !is_mobile( ) ) { } I've tried this, but it didn't work. Link to comment https://forums.phpfreaks.com/topic/270711-determining-content-by-device/ Share on other sites More sharing options...
requinix Posted November 15, 2012 Share Posted November 15, 2012 CSS 3 lets you adapt your site according to the browser. That's a better tool than trying to detect the device and actually alter the pages. Link to comment https://forums.phpfreaks.com/topic/270711-determining-content-by-device/#findComment-1392531 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.