Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
492 views
in Technique[技术] by (71.8m points)

phone number - How to create clickable telephone link with WordPress Custom Links?

I am using WordPress custom links and I need to create clickable links for phone numbers. I have never had a problem doing this in HTML by using the following: <a href="tel:2065221677">(206) 522-1677</a>. But WordPress obviously has a mind of it's own, changes code, and my link does not open with my iPhone.

I found this post where someone had a similar issue and I tried the jQuery script but it doesn't work when I click on the link. I get an error: Authentication required, wanting a user name and password. I believe this code would work if it were clickable not onload. Using "phone" as a CSS class is great also.

Can anyone help me with this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I hope you guys aren't suggesting changing the core or theme files. Much better to bundle this functionality into a plugin like this one http://wordpress.org/extend/plugins/telephone-number-linker/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...