Inserting code into the header and footer in WordPress is also a trick you should know while managing your website.
If you are building a blog or a website, you must have at one time been looking for a way to insert code (js or css) into the header or footer, right? That code can be a Google Search Console blog/website owner verification code, it can be a Google Analytics traffic tracking code or a Google AdWords, Facebook Marketing code…
Many WordPress themes have built-in the ability to insert code into the header and footer. You’ll usually find them in Theme Options or Customizer. That’s why please consider carefully before installing this plugin.
Here I will introduce you to a plugin that makes it easy to do this:
1. Install the plugin:
Go to Plugins => search for “Insert Headers and Footers”

2. Using plugins
Go to Settings => Insert Headers and Footers . Here, you will see a very simple interface, consisting of only 3 parts:

Part 1: This is the part that supports inserting code into the <head> tag in the HTML source code of the web page.

Part 2: This is the part that supports inserting code into the <body> tag in the HTML source code of the web page.

Part 3: This is the support for inserting code into the <footer> tag in the HTML source code of the web page.

Please insert the code in the position that suits your needs then click the Save button to save it.
Remember to clear the blog/website cache and browser cache before checking the results. Good luck!
Epilogue
If you find it interesting, you can follow the wordpress tips section to know more new knowledge.
Follow fanpage to receive the latest posts: Group
Wish you have interesting and interesting knowledge about wordpress!
