× Ask and contribute to general questions and how-to for DecoNetwork products.

Making telephone number clickable

2 weeks 4 days ago #22057 by DigiTees
Making telephone number clickable was created by DigiTees
Hi there, can anyone please help me with the html I need to make the telephone number in the top navigation clickable? And anywhere it appears on the website? 
Support were unable to help. Thanks, Niki 

Please Log in or Create an account to join the conversation.

2 weeks 4 days ago #22058 by ccruz
Replied by ccruz on topic Making telephone number clickable
Hey Niki,

Try this: add an HTML widget into your footer and drop this snippet into it:
<script type="text/javascript">
dnOnLoad(function() {
    jQuery('.dn-phone-number span').wrapInner(function() {
        return "<a href='tel:" + jQuery(this).text() + "'></a>"
    });
});
</script>
-Cris

Please Log in or Create an account to join the conversation.

2 weeks 4 days ago #22059 by DigiTees
Replied by DigiTees on topic Making telephone number clickable
You're awesome, thank you for your help Cris :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.130 seconds
Powered by Kunena Forum