Atimes, you might need to place codes in the head section of your blog i.e between the <head> and </head> tags. Such codes include Google Adsense auto ads codes, Facebook pixel code, Google Webmaster & Bing verification codes etc
So, in this post, I want to quickly share with you how to place such header codes in your Blogger or WordPress blogs.
How To Add Header Code To Blogger Blogs
- Sign in to your Blogger dashboard at blogger.com
- Go to “Theme” > “Edit HTML“
- Click inside the HTML and use CTRL F to find </head>
- Paste the header code above the </head>
- Save your template.
How To Add Header Code To WordPress Blogs
There are different ways you can add header code to WordPress but here is a simple method you can try :
- Sign in to your WordPress Dashboard
- Navigate to “Plugins” and click “Add New“
- Search for Header and Footer Scripts plugin
- Install and activate the plugin
- Go to Settings > Header and Footer Scripts
- Paste the code into the “Scripts in Header” box
- Save settings.
Alternatively, you can use Insert Headers and Footers plugin.
Hi Admin,
Thanks for sharing this post which really helped me to know the right codes to add.
I was just looking to know the right code and finally, this post helped me 🙂
wow, good tips off sir jide keep up
you really help me
Thanks for this brother
Nice article. I would also add that the wp header and footer hooks must be available in the header and footer templates respectively for it to work.