Adding GoogleTags code in Action bar & Contact box
Hi
i need to add this Googletag code around the telephone number in the action bar and on the contact box on the contact us page.
<a onclick="return gtag_report_conversion('tel:07767112990');" href="tel:07767112990">07767112990</a>
This code needs to be placed around the email address on the contact box on contact page
<a onclick="return gtag_report_conversion('mailto:[email protected]');" href="mailto:[email protected]">[email protected]</a>
adding these codes to the options or element just displays the code on the front end. Could you provide a way to add this code please
The website is invigorate-training.co.uk
Thanks in advance
Comments
you cannot use HTML markup in most of Theme options. Fields that
previously accepted HTML now only accept plain text.
Only basic HTML tags like strong and u are working. Read more about the changes here:
https://help.author.envato.com/hc/en-us/articles/360000481243-WordPress-Theme-Security-Requirements#h_674316188621522302914837
$output .= '<li class="phone phone-1">';
$output .= '<span class="icon"><i class="icon-phone"></i></span>';
$output .= '<p>
$output .= '</li>';
}