Do you want to add code to the WordPress Header and Footer of your WordPress site?
There are many WordPress themes that do not provide you any features to add code to Header and Footer.
Today in this article I will tell you how to add code to the Header and Footer of WordPress Site.
So let’s start…
How to Add Code to WordPress website Header and Footer
First, install and activate the Insert Headers and Footers plugin in your site.
After activating the plugin, click Settings >> Insert Headers and Footers. Here you will see two boxes. You can add (Header or Footer) code as per your need.
If you want to add code to the Header, paste the code in the Script in Header box but if you want to add the code to the Footer, paste the code in the Script in Footer box.
After pasting the code, click on the Save button.
Apart from this, if you use the Genesis Framework on your site, then you can easily add code to Header and Footer.
Just click Appearance >> Customize. Then go to the Header / Footer Scripts section and add your code to the Header.
Hope this article helped you add code to the Header and Footer of your WordPress site.
If this article has proved helpful to you, then do not forget to share it.