Hi Guys, Can anyone tell me how to make the email address in my footer (inserted in theme options) into a link so it will open there chosen email client software? Thanks
For this Go to the Theme directory > front-page.php and edit front-page.php as instructed below. Paste the code Code: <div class="grid_7"> <div class="index-info-two"> <a href="mailto:<?php if (inkthemes_get_option('inkthemes_email_add') != '') { ?>"> <span><?php echo stripslashes(inkthemes_get_option('inkthemes_email_add')); ?></a></span> <?php } else { ?> <span><?php _e('[email protected]','andrina'); ?></span> <?php } ?> </div> </div> inplace of Code: <div class="grid_7"> <div class="index-info-two"> <?php if (inkthemes_get_option('inkthemes_email_add') != '') { ?> <span><?php echo stripslashes(inkthemes_get_option('inkthemes_email_add')); ?></span> <?php } else { ?> <span><?php _e('[email protected]','andrina'); ?></span> <?php } ?> </div> </div> for the reference see the image given below this will solve your issue.
HI I have inserted the code you said above but when I click my email address on my home page it opens a blank outlook email but does not fill in the "To" section on the email. The customer would have to go back to my website and copy and paste the email address in. Is there a part in the coding that I can enter my email address so it auto fills in the email "To" section when they open it? Thanks, Gareth www.asisevents.com
Hello, Replace the code given below with the code given in the above post. Code: <div class="grid_7"> <div class="index-info-two"> <?php if (inkthemes_get_option('inkthemes_email_add') != '') { ?> <a href="mailto:<?php echo stripslashes(inkthemes_get_option('inkthemes_email_add')); ?>"> <span><?php echo stripslashes(inkthemes_get_option('inkthemes_email_add')); ?></span></a> <?php } else { ?> <span><?php _e('[email protected]','andrina'); ?></span> <?php } ?> </div> </div> This will solve your issue.