Adding Google Tracking to Phone Number
Good day. I am adding Google Call Tracking to my website and need to
replace each instance of my phone number with <font
class="number">(855)
555-5555</font> My phone number currently shows up in the Action
Bar which wraps it in a <a href tel: tag. So when I replace the phone
number in the BeTheme Options screen for the Action bar, the result is
on the front end of the web site looks like:
(855) 555-5555">(855) 555-5555
Is there any way to correct this without modifying theme files that might get overwritten when I update?
Thank you.
replace each instance of my phone number with <font
class="number">(855)
555-5555</font> My phone number currently shows up in the Action
Bar which wraps it in a <a href tel: tag. So when I replace the phone
number in the BeTheme Options screen for the Action bar, the result is
on the front end of the web site looks like:
(855) 555-5555">(855) 555-5555
Is there any way to correct this without modifying theme files that might get overwritten when I update?
Thank you.
Comments
you can do it in includes/header-top-area.php file.
if( $header_phone = mfn_opts_get( 'header-phone' ) ){
echo '<li class="phone"><i class="icon-phone"></i><font class="number"><a href="tel:'. str_replace(' ', '', $header_phone) .'">'. $header_phone .'</a></font></li>';
It is inserting the dynamic number okay, but when it does, the font becomes transparent. Can you tell me what to modify to ensure the font stays the right color?
Thank you.
Thanks for understanding!