This is an old trick, but it’s still great to use especially in this case where your site visitors can click directly on their phone to call your business.
function isMobileDevice() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link
Like us on Facebook below to reveal the rest of the content.
<?php
function isMobileDevice() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
if(isMobileDevice()){
// mobile device is detected - make the link work so that users can dial directly from their phone
echo "Click to Call Us (000-000-0000)"; //add your <a> link
}
else {
// non mobile is detected - display the information without making it clickable
echo "Call Us (000-000-0000)";
}
?>
Solar Eclipse 2024 #solareclipse #eclipse2024 #webdevelopment #videos #graphicdesign #marketing #RevenueGrowth #contactus ... See MoreSee Less
View Comments
likes
2
Shares:
0
Comments:
0
0 CommentsComment on Facebook
