Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Gabriel Ward
Gabriel Ward
20,222 Points

Email popup window on the click of email address

I have a Wordpress site, it's hseniors.org.nz

On the contact page there is a contact email address. It's added simple at text on the page. I want it so that the email address is clickable, and when it is clicked an email window pops up with the email address in it.

Thanks for any help.

1 Answer

Tiffany McAllister
Tiffany McAllister
25,806 Points

Do you mean you want the email address to be clickable so that it opens in the users email client program? If so, this should do the trick:

<a href="mailto:emailaddress@domain.com">Email Me!</a>
Gabriel Ward
Gabriel Ward
20,222 Points

Hi Tiffany, sorry about the late reply. That worked a treat, thank you so much.

Tiffany McAllister
Tiffany McAllister
25,806 Points

Not a problem, Gabriel! I'm glad you got it working :)