- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress. How to add clickable phone numbers for smartphones
April 6, 2015
This tutorial will show you how to add clickable phone numbers for smartphones in WordPress.
WordPress. How to add clickable phone numbers for smartphones
-
Open your website. If you need to add a clickable phone number to your header, the proper format to write a telephone number is the following:
<(Area Code)> . Example: +1 (555) 555-1212. However, most smart phones would also recognize these formats: -
+15555551212
-
+1.555.555.1212
-
555-555-1212
-
555 555 1212
Writing phone numbers in proper format will automatically convert them into links for mobile phone users. However, users with older phones may not see the link.
Open your WordPress admin panel, navigate to Appearance -> Editor. Look for wrapper-header.php file and insert the following link. This link will work on Android and iPhone. It will be visible to desktop users but will result in an error when clicked:
+1 (555) 555-1212 Call Me
Click Update.
-
-
Check your website, please. You can see the link has appeared:
This link will be visible to users on all devices. If someone on the desktop clicks on it, then it will do nothing on Google Chrome and will show an error in Firefox.
-
There is another way to insert the link and it will open Skype on desktop and notebooks, on mobile phones it will ask users if they would like to open Skype or dial this number using their phone.
There is the code:
+1 (555) 555-1212
-
Check your website, please. The link has appeared:
-
If you need to link a number to an image, use this code:
When you put this code in your wrapper-header.php file, You can add a specific class, so you will have opportunity to align your image with the help of css styles.
For example:
Make sure that you have uploaded image you need to your server and wrote the right way to this image. In our case http://localhost/kristy/wordpress4/wordpress/wp-content/themes/theme51975/images/call-me2.jpg:
-
Check your website, please. You see there is the image. Please align it with css styles. Add a New css code to your style.css file:
-
You can also create links to Skype usernames and provide live chat support, or voice call support to your visitors.
Use this code in your wrapper-header.php file:
Skype
-
Check your website, please. You see Skype text. When you click it, it links to Skype:
Thank you for watching our tutorial, now you know how to add clickable phone numbers for smartphones in WordPress.
Feel free to check the detailed video tutorial below:
WordPress. How to add clickable phone numbers for smartphones