-
AuthorPosts
-
January 24, 2018 at 8:08 pm #902277
Hi,
We have been asked to insert the Bing tracking code as below by a customer.
Bing Ads UET tag tracking code. You need to add it to your entire website in the header or body sections. If your website has a master page, then you can add it once there and it is included in all pages.
We are using the Enfold Child Theme and to be honest, we are unsure where to add the code? In addition, we are using Google Analytics. Will there be any conflict?
Sorry if the above appears to be stupid questions, but we all have to learn :)Regards
NeilJanuary 24, 2018 at 10:02 pm #902358Hey Neil,
You can insert the code into the header.php or footer.php. This will ensure that it picks up across the whole site. Keep in mind you would want to use a child theme so the php file is not overwritten on updates.
Best regards,
Jordan ShannonJanuary 25, 2018 at 11:17 am #902760Hey Jordan,
Thank you for your reply.
We are running the Enfold Child theme but we only see style.css and functions.php in the child theme editor section.
Do we edit the header.php file in the main Enfold section? I do not think we do?
Although there are many references to ‘how to install the Enfold Child Theme’ we cannot find any information as to how to actually make use of it :)
Regards
NeilJanuary 25, 2018 at 11:47 am #902767Hi,
Try adding the code in child / functions.php – it should work
function add_custom_script(){ ?> PASTE YOUR CODE HERE <?php } add_action('wp_footer', 'add_custom_script');
Alternatively, copy footer.php or header.php to child theme folder and paste the code.
Regards Pete
- This reply was modified 6 years, 10 months ago by 2funky.
January 25, 2018 at 12:15 pm #902776Hey 2funky,
Thank you for the input on this.
Best regards,
Jordan ShannonJanuary 25, 2018 at 4:56 pm #902904Hi 2funky,
We had to edit the header.php and copy to the Enfold Folder as we kept seeing this message when trying to edit the functions.php file within wordpress – is this a hosting issue?
Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.
Thank you for your help with this..
Regards
NeilJanuary 25, 2018 at 6:42 pm #902955Hi,
Please refer to the following article on dealing with that error.
Keep in mind you can in fact update via FTP.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.