Clickable phone number

General questions about CMSimple
Post Reply
Korwin
Posts: 80
Joined: Sat Oct 13, 2018 3:27 pm
Location: Russia, Yekaterinburg
Contact:

Clickable phone number

Post by Korwin » Sat Jan 25, 2020 3:01 am

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'>
            <h1>
            <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>
            </h1>
         </div>
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 flathaus.ru Port 80

olape
Posts: 1012
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Clickable phone number

Post by olape » Sat Jan 25, 2020 7:37 am

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.

Korwin
Posts: 80
Joined: Sat Oct 13, 2018 3:27 pm
Location: Russia, Yekaterinburg
Contact:

Re: Clickable phone number

Post by Korwin » Sun Jan 26, 2020 5:07 am

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>

Post Reply