queue  5
support
Results 1 to 4 of 4

Thread: Mailto and link to phone number on the footer links in Thread theme

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    10

    Mailto and link to phone number on the footer links in Thread theme

    Hi,

    How can I make the footer links open email (mailto and phone number when clicked?

    Thanks so much

    Amy

  2. #2
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    1,918
    Hi, Have you tried just inserting the following in to the link fields in the theme admin for those links?

    For phone numbers to be recognised on mobile devices, href links can be as follows:
    Code:
    tel:123456789

    For mailto link to be recognised on mobile devices, href links can be as follows:

    Code:
    mailto:email@emailaddy.com

  3. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    10
    Hi, when I do that the icon becomes a link but the text does't. I really need the text to link.

    Thanks

    Amy

  4. #4
    Lead Coder Fabio's Avatar
    Join Date
    Aug 2011
    Posts
    2,081
    Hi,


    you can edit footer.php in theme root folder and change the line


    Code:
    // change the line
    <span class="text-white"><em><?php echo $t->options->get( 'footerEmail' ); ?></em></span>
    // to
    <span class="text-white"><a href="mailto:email@email"><em><?php echo $t->options->get( 'footerEmail' ); ?></em></a></span>

    do the same for the phone text
    My cave is full of servers