Page 1 of 1

Clickable phone number

Posted: Sat Jan 25, 2020 3:01 am
by Korwin
Dear friends!

Tell me, please, how to insert a clickable phone number in the template and on the pages in CMSimple_XH?

I tried:

Code: Select all

<div id='sitename'>
            <a href="./"><?php echo sitename();?></a> 
            <a href=”tel:+7(982)7477992">+7(982)747-79-92, </a> 
            <a href=”tel:+7(343)2135296">+7(343)213-52-96</a>
but when checking the system wrote:
Not Found
The requested URL / â € tel: +7 (343) 2135296 "was not found on this server.

Apache / 2.4.10 (Unix) Server at Port 80

Re: Clickable phone number

Posted: Sat Jan 25, 2020 7:37 am
by olape

Code: Select all

<a href="tel:+73432135296">+7(343)213-52-96</a>
Check this please!
The only disadvantage: Desktop users using Firefox or IE can also click on the phone numbers and get an error message.
So the safest option is to separate mobile devices and desktop and label each of them separately.

Re: Clickable phone number

Posted: Sun Jan 26, 2020 5:07 am
by Korwin
Cause of error detected, thank you very much! That was the wrong quote at the beginning!

<a href=tel:+7(982)7477992">+7(982)747-79-92, </a>