Link to email?

  • Author
    Posts
  • #13734

    I’m probably missing something really simple here, but I can’t seem to figure out how to make my name when I post something be a link to my email address. I know, I know, spam and all that, but I already get a ton of spam, so a bit more won’t hurt.

    #13856

    ptvguy
    Member

    It looks like this:

    <a href="mailto:(email redacted)">Michael</a>

    #13858

    Thanks for the reply, but actually, I was wondering if it’s possible to put a link to my email address in my name in the “posted by” line (right below the topic).

    #13859

    ptvguy
    Member

    Ah, no. That part is fed by the template, and there’s no access to that. You might place it in a text widget at the top of your sidebar. Taht’s what I finally had to do.

    #13860

    cornell
    Member

    Bear in mind that if you display your email address like that then the spam bots *will* pick it up and fill your inbox.

    #13872

    drmike
    Member

    Agreed. You may want to do something like I do on my contact page and fudge it.

    I do remember someone mentioning that they had a contact form within their theme now though since we now have page templates. You may want to review your DashBoard -> Write -> Write Page -> Page Templates to see if you have this. I don’t know if it would work though on WP.com

    Hope this helps,
    -drmike

    #13881

    Thanks for the replies. I’ll probably just put in a contact page then, and use drmike’s suggestion to avoid excessive spam.

    #13887

    drmike
    Member

    You can also encode your email address if you want. Note sure if this would work with the protections we have here at WP.com though.

The topic ‘Link to email?’ is closed to new replies.