How to Add Code to the Header or Footer

  1. Go to your WordPress dashboard > Plugins > Add New
  2. Search for the WPCode – Insert Headers, Footers, and Code Snippets plugin > install and activate it
  3. Go to Code Snippets (left column) > Header & Footer
  4. If you have to add a code between <head> and </head>, add it to the Header area
  5. If you have to add a code just below <body>, add it to the Body area
  6. If you want to add a code above </body>, add it to the Footer area