Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Thank you for reaching out and detailing the issue you’re experiencing.

    I see what’s happening – the translation process is interpreting your “mailto:” links as internal links, which they are not.

    A workaround could be to use our conditional shortcode feature, which allows you to display content only for certain languages. You can set up separate buttons or links for each language. Here’s how:

    [trp_language language="en_US"]
    <a href="mailto:[email protected]">Email Us</a>
    [/trp_language]
    
    [trp_language language="es_ES"]
    <a href="mailto:[email protected]">Envíanos un correo electrónico</a>
    [/trp_language]

    In the above example, the English page will display a link to “[email protected]“, and the Spanish page will display a link to “[email protected]“. Both links will work properly in their respective languages.

    For more information on the conditional shortcodes feature, please refer to our documentation: https://translatepress.com/docs/restrict-by-language/translation-shortcode/

    Please let me know if you have any further questions or concerns. I’m here to help.

    Best regards,

    Thread Starter migster

    (@migster)

    Hi Denis, thanks for the repsonse.

    Unfortunately, I get the same result with the shortcode. All other links are fine, but the lack of https:// on the mailto: seems to be what is causing it to appear as a local url. Curiously, tel: links work perfectly well

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Embedded Email Addresses Not Parsed Properly When Translated’ is closed to new replies.