Remove contact email hyperlink/url

Capture
on my forum, when people click the email they are redirected to the following link:
https:// forum.theprojectvanlife .com/contact@theprojectvanlife.com

How do I prevent that from happening?

Enter the correct value in site settings, you have something there that is invalid at the moment.


How is that incorrect?

Can you repro this @jomaxro?

1 Like

No I cannot. @Sami_Syed is it possible the text content was modified? What is the value in /admin/customize/site_texts/js.about.contact_info?

3 Likes

Check your contact url site setting as well.

1 Like

In order for this to become a hyperlink that launches an email client you need to set contact url to mailto:myname@example.com

In my test on try contact url has higher priority. If both are set the URL appears as expected. If only URL is set, a hyperlink appears. If only email is set the email appears as plain text. @merefield is correct about how to make email a link.

3 Likes

This is what it looks like

In the event of a critical issue or urgent matter affecting this site, please contact us at %{contact_info}.

I already did that and posted a pic of it up top ^

This worked but now I have ‘mailto’ right before the email. Is it possible to remove that.

Actually turns out you can do this in contact url:

<a href="mailto:myname@example.com">myname@example.com</a>

This hides the ugly mailto :slight_smile:

That last rolo is mine, now, right? :wink:

2 Likes

Note that’s contact email, not contact url.

:heart:!

like there is a ‘mailto:’ tag is there something like a ‘redirect’ tag? So that I can send users to my contact page when they click the email

In that case just use the full URL of the page you want to go to, including the http://

(if you don’t it will try to append the link you give to the end of the current domain).

You don’t need the rest of the html in the case of mailto:, so just:

http://myotherwebsite.com should work in contact url

1 Like

It worked perfectly

This is the problem I was having. Thank you!

1 Like

This topic was automatically closed after 2194 days. New replies are no longer allowed.