Call To Action (Main Header) Number Fix
-
Open Shop “Call To” action doesn’t go to the correct number, that’s why I have to dig for the source code. Turn’s out there was a bug/ mistake on the code.
inc > header-function.php > line 353
Previous code was,
<span class="sprt-tel"><b><?php echo esc_html(get_theme_mod('open_shop_main_hdr_calto_txt',__('Call To','open-shop'))); ?></b> <a href="tel:18005551212"><?php echo esc_html(get_theme_mod('open_shop_main_hdr_calto_nub',__('+1800090098','open-shop'))); ?></a></span>
Current code that fixed it,
<span class="sprt-tel"><b><?php echo esc_html(get_theme_mod('open_shop_main_hdr_calto_txt',__('Call To','open-shop'))); ?></b> <a href="tel:<?php echo esc_attr(get_theme_mod('open_shop_main_hdr_calto_nub',__('+1800090098','open-shop'))); ?>"><?php echo esc_html(get_theme_mod('open_shop_main_hdr_calto_nub',__('+1800090098','open-shop'))); ?></a></span>
TO THE DEVS, PLEASE ADD THIS ON NEXT UPDATE ASAP!
- The topic ‘Call To Action (Main Header) Number Fix’ is closed to new replies.