Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey frenk,

    I’ve changed my code a little so it might not be the exact same line, but try changing this line around line 190 in plugin index.php:

    <div><?php if(isset($ind_email_detail['email']) AND $ind_email_detail['sh']=='s_email')echo esc_attr($ind_email_detail['email']);?>
                           </div>

    Try changing it to this:

    <div><?php if(isset($ind_email_detail['email']) AND $ind_email_detail['sh']=='s_email')echo '<a href="mailto:'esc_attr($ind_email_detail['email'])'">Email me</a>';?>
                           </div>

    Let me know how it goes. Cheers!

    JohnLaw3742

    (@johnlaw3742)

    That didn’t work for me but this code with a few commas added did

    <div><?php if(isset($ind_email_detail['email']) AND $ind_email_detail['sh']=='s_email')echo '<a href="mailto:',esc_att($ind_email_detail['email']),'">Email me</a>';?>
                           </div>

    JohnLaw3742

    (@johnlaw3742)

    Well the code I used worked once then I reverted to make a few more tests and when I re-changed my code it doesn’t work anymore. I’m still looking to solve for this.

    JohnLaw3742

    (@johnlaw3742)

    I had a typo. this corrected code worked for me – same as amandas but just with commas added.

    <div><?php if(isset($ind_email_detail['email']) AND $ind_email_detail['sh']=='s_email')echo '<a href="mailto:',esc_attr($ind_email_detail['email']),'">Email me</a>';?>
                           </div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Clickable e-mail’ is closed to new replies.