Email link to outlook

Discussion in 'Andrina WordPress Theme' started by stewarty, Feb 8, 2013.

  1. stewarty

    stewarty New Member

    Joined:
    Sep 9, 2012
    Messages:
    21
    Likes Received:
    0
    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
     
  2. stewarty

    stewarty New Member

    Joined:
    Sep 9, 2012
    Messages:
    21
    Likes Received:
    0
    Is there not somewhere in the editor that the email address can be made into a link?
     
  3. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    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
    [​IMG]

    this will solve your issue.
     
  4. stewarty

    stewarty New Member

    Joined:
    Sep 9, 2012
    Messages:
    21
    Likes Received:
    0
    Hi,

    Can it add my email address automatically so they don't have to type it in?

    Thanks
    Gareth
     
  5. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
  6. stewarty

    stewarty New Member

    Joined:
    Sep 9, 2012
    Messages:
    21
    Likes Received:
    0
    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
     
  7. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    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.
     

Share This Page