How would I make a phone number clickable on a mobile phone?
StackOverflow showed an HTML method: < a href=“tel:+1-800-555-5555”>Call 1-800-555-5555< /a >
(Note that I added spaces in the A Href opening an closing tags above so the code would show up. The spaces are removed in the line below where you see the hyperlink.) Call 1-800-555-5555
I put that in an HTML Widget and tested it locally. It looks like it would work but of course I just see a hideous blue hyperlink in Times New Roman. I have no idea how to format that (via CSS I suppose) to get an aesthetically pleasing look.
I was really hoping there’d be a simple option on a button action for Phone Number, as there is for Compose Email and Go To URL.
Thanks so much for your help. I was able to get it to work quite nicely using your method.
One remarkable aspect is that I can select some text (such as the phone number or button label) and tweak the colors and font styles with Hype’s Typography GUI, and it automatically updates in the HTML code with inline formatting. (Note the custom Letter Spacing and Text Shadow settings in the pic below. None of that was typed. I just edited it in the GUI.) I’m extremely impressed with Hype.
You can link an image by editing the inner HTML and placing this in the Inner HTML of the element. This just makes an invisible link the full width and height of the image:
Also, you can make a button with a phone icon over it and then add in the actions inspector, on Mouse Click, Go to URL action, and put the phone number on the field:
tel:+(555)1234567
The number is underlined and when I click on the phone number from my computer it tries to navigate to a page "tel:2512364838"
What would be the code that I can insert in the inner HTML that makes the text link work but without an underline and without trying to go to a web page?