Hi there,
Could you tell me the correct way to place a Bing code in the theme’s header.
Thanks
in advance.
Hi there,
Could you tell me the correct way to place a Bing code in the theme’s header.
Thanks
in advance.
Hi there,
Please try this in the functions.php:
add_action('wp_head', 'add_code_header');
function add_code_header(){
?>
<!-- Add the meta code here -->
<?php
}
Please add the meta code in the area <!-- Add the meta code here --> of the code above.
Hope this helps.
Is this correct?

Hi there,
Please change your_function_name to add_code_header.
Hope this helps.
Like this?
Hi There,
Yes, that is correct. You can then check it, by viewing your page then view-source (Ctrl+U or Cmd+U) then find (crtl+f) the meta code if its inside the <head> part.
Thanks,
Mmmm, think I still have this wrong, I get this message:
Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.
Hi There,
There might be some server permission which blocking you to do on line editing.
Can you please download the file Via FTP and after edit it re-upload to the server.
You can check this for help!
Thanks
Ended up adding the code via FTP. I didn’t do it so can’t say what code was used. This was a Bing Microsoft identification code, a little different than usual Google analytic and such.
Thanks for your help though, learned how to insert code in child theme for next time.
Hi There,
Sorry to not give you a tip about that, yes you should be doing all your child theme modification via FTP, rather than in Appearance > Editor.
Should I use WP Editor, or FTP or Code Snippets to Customize PHP?
Hope this shed some lights,
Cheers!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.