Contentful logo

Contentful Community

Phone numbers as links

#1

Afternoon. Wondering how to make phone numbers into links in web content?

0 Likes

#2

Hi @mary.hay,

Could you provide some more context and details about what you’d exactly like to achieve?

0 Likes

#3

Hi Gabriel

I want to be able to link phone numbers so if you are using a mobile device you can just click and call the number rather than trying to remember it and then call the number.

0 Likes

#4

Hi @mary.hay,

Since our long-text field uses Markdown syntax, you’d have to structure your content in such a way as [123-456-7890](tel:1234567890)

123-456-7890

That would ensure that you’re given the option to call the number you reference in your markdown text.

0 Likes

#5

Thanks Gabriel. Works like a charm. I knew it would be simple.

Mary

0 Likes

#6

Glad it helped :slight_smile:

Let me know if you have any other questions.

0 Likes