Hiding a php element from mobile browsers
This is more of a php question than a WP question, but there’s a great function here that does what you’re looking for. function is_mobile() { // Get the user agent $user_agent = $_SERVER[‘HTTP_USER_AGENT’]; // Create an array of known mobile user agents // This list is from the 21 October 2010 WURFL File. // … Read more