We recently received a case where the user wanted to disable the 'click to dial' functionality associated with phone numbers.
Here is a workaround for that:
1. Under .. wwwRoot/js/Custom folder > create a .js file and add the code/script mentioned below and it will load on all pages.
$(function() {
var telLinks;
telLinks = document.querySelectorAll('[href^="tel:"]') Array.from(telLinks).forEach(function(link)\ {
link.removeAttribute('href');
link.classList.remove('PHONELINK');
link.classList.add('TOPHEADING');
link.style.removeProperty('text-decoration');
}
)
});
2. Remember these files are loaded in alphabetical order.
3. Please hard refresh : Ctrl + F5 to see the changes.
Hope this helps!
Kind Regards,
Seema