queue  6
support
Results 1 to 6 of 6

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
    2,035
    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

  5. #5

    Phone not clickable

    Quote Originally Posted by Fabio View Post
    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
    Hi,
    Thanks! For the email this works perfect!
    Can you please advice me which code I need te replace to get the phonenumber in the footer working on the mobilephone?
    My website is: http://spot-relocations.com/
    Many thanks!
    Wietske
    Last edited by wietsketammes; 12-19-2017 at 11:37.

  6. #6
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    2,035
    Hi, Find the code for that in the footer also and just use "tel:" in the href just like you would use "mailto:" like this:

    Code:
    <a href="tel:1234567890">Click to call</a>
    This will work on mobile devices.