WordPress.org

Ready to get started?Download WordPress

Forums

Email link (11 posts)

  1. confused
    Member
    Posted 8 years ago #

    Hi, can someone tell me how to create a link to my email address in the body of a text.

  2. joelwalsh
    Member
    Posted 8 years ago #

    WordPress should be able to handle any html you throw at it in a post or page or even a comment (unless you've disabled html). So you could just use the standard:

    <a href="mailto:funky@bunch.com" > mail < /a>

    `
    Plus, it will usually automatically convert URLs and email addresses to live links with the address itself as the anchor text. So if you just type in your email address in the post or page it should convert into a live link.

    So, you could just do: funky@bunch.com

    If you mean how do you create a link to your email address that uses javascript to avoid having the address get picked up by spambots, there's a plugin for that with the word "transpose" in the name, something like "transpose-email."

  3. confused
    Member
    Posted 8 years ago #

    That code worked. Thanks. But I think I must have disabled my html. Where would I check this?

  4. Melodiefabrieknl
    Member
    Posted 8 years ago #

    but you'll be spammed. I would never put email accounts like that in a page. you can also scrabble it a bit with javascript, but still not perfect.

  5. eveums
    Member
    Posted 8 years ago #

    If you're afraid of automated spam, you might try something like addressATyahooDOTcom. Most humans will know to replace the @ and .

    Or you could try the Contact Form plugin. It's great and easy to use.

  6. Melodiefabrieknl
    Member
    Posted 8 years ago #

    or create a javascript function like:

    function myEmail(){
    var mynl = "nl" ;
    var myname = "yournamebeforethe@" ;
    var mydomain = "yourdomain" ;
    var myappestaartje = "@" ;
    var myhrefbegin = "<a href=mailto:" ;
    var myhrefeinde = "" ;

    return (myhrefbegin + myname + myappestaartje + mydomain + "." + mynl + ">" + myname + myappestaartje + mydomain + "." + mynl + myhrefeinde ) ;

    }

  7. elis
    Member
    Posted 8 years ago #

    Sorry for the question in the question, but it safe to use a similar way as in this website?
    http://www.iconico.com/emailProtector/

    Example:
    name@hostname.org
    is coded in this mode:
    <a href="mailto:
    & # 1 1 0 ; & # 9 7 ; & # 1 0 9 ; & # 1 0 1 ; & # 6 4 ; & # 1 0 4 ; & # 1 1 1 ; & # 1 1 5 ; & # 1 1 6 ; & # 1 1 0 ; & # 9 7 ; & # 1 0 9 ; & # 1 0 1 ; & # 4 6 ; & # 1 1 1 ; & # 1 1 4 ; & # 1 0 3 ; & # 3 2 ; " > & # 1 1 0 ; & # 9 7 ; & # 1 0 9 ; & # 1 0 1 ; & # 6 4 ; & # 1 0 4 ; & # 1 1 1 ; & # 1 1 5 ; & # 1 1 6 ; & # 1 1 0 ; & # 9 7 ; & # 1 0 9 ; & # 1 0 1 ; & # 4 6 ; & # 1 1 1 ; & # 1 1 4 ; & # 1 0 3 ; & # 3 2 ;
    </a>

  8. elis
    Member
    Posted 8 years ago #


  9. Melodiefabrieknl
    Member
    Posted 8 years ago #

    might be interested, but I don't know if that's good enough.

  10. elis
    Member
    Posted 8 years ago #

    Same thing on this post:
    http://wordpress.org/support/topic/42735

  11. joelwalsh
    Member
    Posted 8 years ago #

    Yes, use the plugin elis just recommended, it's a lot easier than coding by hand which is what the "transpose" plugin required:

    http://guff.szub.net/email-immunizer/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.