Adding Code To My Wordpress Header

by 9 replies
11
I just set up and got code for GoogleTag Manager I want to add to my "header.php". It is suggested the code be pasted just after <body> and note in screenshot that the <body> has code within it....in essence: <body> and wonder if there is any ppossibilty of adding the code in the "header.php" elsewhere.....if so, please suggest. Thanks.....
#website design #adding #code #header #wordpress
  • Use the plugin Insert headers and footers, easy work... https://wordpress.org/plugins/insert...s-and-footers/
    • [ 1 ] Thanks
  • thanks Nabaleka: Is that plugin stable? I ean, it doesn't require constant updating does it? I try and avoid reliance on too many plugins but if it works, OK,,,,what link in repository?
    • [1] reply
    • The plugin is stable, check the number of downloads and review, I have placed the link on my previous response.
  • [DELETED]
    • [1] reply
  • Hi Nabaleka! I discovered I did not have to use a plugin. I studied a tutorial I found and learned it could be added directly between:

    <body <?php body_class( $class) ; ?>> <div id= ETC></div
  • I think you should put it in footer before </body> for good performance
  • ZinZin, thanks. It is performing OK because Chrome offers an extension called Google Tag Assistant you install in your browser....when all tag performances pop up as green arrows, the program is working properly on your site which is what Isee now....thank you greatly!
  • toivo is your problem solved?
  • been using 'insert header and footer' pluging for months without issue. Does exactly what you need it to

Next Topics on Trending Feed

  • 11

    I just set up and got code for GoogleTag Manager I want to add to my "header.php". It is suggested the code be pasted just after <body> and note in screenshot that the <body> has code within it....in essence: <bodycode here> and wonder if there is any ppossibilty of adding the code in the "header.php" elsewhere.....if so, please suggest. Thanks.....