WordPress.org

Ready to get started?Download WordPress

Forums

Make picture link to email (5 posts)

  1. levi2604
    Member
    Posted 3 years ago #

    Hi,

    I created a page with a lone image of myself and I want to be able for any user to click the image and be directly taken to their email so they can contact me. Any help is appreciated?

  2. flick
    Member
    Posted 3 years ago #

    If I remember correctly, you could just use the standard mailto:
    <a href="mailto:youremail@yourdomain.com"><img src="your image url" /></a>

    Then anyone who uses e.g. Outlook will be able to email you by clicking on the link.

    p/s: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_mailto

  3. levi2604
    Member
    Posted 3 years ago #

    Worked like a charm 'flick'

    Much appreciated.

  4. flick
    Member
    Posted 3 years ago #

    You're welcome :)

  5. devsmum
    Member
    Posted 3 years ago #

    Thanks a million - I just could not get it to work the using the editor to create a link and had to resort to actual coding - this worked a treat! Much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags