All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Adding link in image  (Read 278 times)

0 Members and 1 Guest are viewing this topic.

Offline jsugarstuff

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: Custom
Adding link in image
« on: 24 January 2010, 22:04 »
WP 2.9, Custom Theme, http://successfultransformation.com, WP-Email 2.5

I've been trying to link up to wp-email using my own icon as a button. I've searched this site for a couple hours and the closest useable code I've found is...

<?php if(function_exists('wp_email')) { email_link(); } ?><a href="<?php the_permalink() ?>emailpopup/">
<img src='http://successfultransformation.com/images/email.gif' class="socialicon-image" alt="" /><br />Email</a>

However, this creates two links, one above my image, and one below (which makes the image clickable too). Both links work, but the first link has a popup (which I want) and the second one doesn't.

How can I make the second link popup in the same size box as the first and get rid of the first link altogether?

P.S. I'm currently testing this on a test blog using the same theme as my site listed above, so it won't show up on that site.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Adding link in image
« Reply #1 on: 25 January 2010, 08:06 »
You can just use this:
Code: [Select]
<a href="<?php the_permalink(); ?>emailpopup/" title="Email This Product" onclick="email_popup(this.href); return false;"><img src='http://successfultransformation.com/images/email.gif' class="socialicon-image" alt="" /></a>

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.