test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • beuvema Friend
    #840048

    I want to add the possibility to start calling the phone number by changing this link to <a href:"tel:+31648811308">Bel mij</a>

    how can I do this?

    also I want to open these links target=_blank how can I add this?

    Hope to hear from you soon.

    Regards Bernd


    1. BI-Contactpage-Phone
    Adam M Moderator
    #840332

    Hi @beuvema,

    Please provide your site url and temporary admin account, also give me the url to that page (if it’s not in your home page) so I can check that matter for you.

    beuvema Friend
    #840364
    This reply has been marked as private.
    Adam M Moderator
    #840887

    Hi @beuvema,

    Did you modify the template to place the telephone number there ? because I see it’s a bit different from original template. In this case, please also provide a temporary FTP account via private reply, I will update this part for you.

    beuvema Friend
    #841252
    This reply has been marked as private.
    Adam M Moderator
    #841777

    Hi @beuvema,

    I updated the code for you, you can see the change in file templates/ja_sugite/html/com_contact/contact/default_links.php where I replaced :

    <li>
        <a href="<?php echo $link; ?>">
            <?php echo $label; ?>
        </a>
    </li>

    with :

    <li>
        <?php if($label == 'Bel mij') :
            $link = str_replace('http://','',$link);
        ?>
        <a href="<?php echo $link; ?>">
            <?php echo $label; ?>
        </a>
        <?php else : ?>
        <a href="<?php echo $link; ?>">
            <?php echo $label; ?>
        </a>
    <?php endif; ?>
    </li>
Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 5 replies, has 2 voices, and was last updated by  Adam M 8 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum