I’m working on a mobile site built on WordPress and JQuery Mobile. I needed one of those fancy click-to-call buttons for the phone number, so I was using a WordPress Custom Link in a Custom Menu. Unfortunately, WordPress kept reverting my “tel:512.555.5555” link into an empty <a> tag which broke my formatting! I found this nifty piece of JavaScript that cleared up my issue. Maybe it will help you, too.

<!–this turns http: to tel:–>
<script type=”text/javascript”>
      var href_value;
      href_value = jQuery(‘li.menu-item-24 a’).attr(‘href’);
      href_value = href_value.replace(‘http://’,’tel:’);
      jQuery(‘li.menu-item-24 a’).attr(‘href’,href_value);