Home / Wordpress / How to insert Header And Footer Code In WordPress

How to insert Header And Footer Code In WordPress

It is true that we insert scripts several times into the theme’s header and footer files. If you are a web developer then it is so easy for you to insert a code/script in any area of your theme but those folks who are new in WordPress face difficulties about adding the Google, alexa verification script and other things to their blog because one wrong move can damage their whole site. However Premium WordPress themes like Genesis have a built-in option to quickly insert header and footer code to WordPress themes files but those beginners who cannot afford such type of themes face issues to add a code in their site.

Insert Header and Footer Code Through Two Ways

There are two ways available which you can use to insert header and footer code on your site.

  1. Add a code through manual work
  2. Add code through a plugin

Adding a Code Through Manual Work

To insert header and footer code manually first of all login to your WordPress Admin Dashboard. Now navigate to Appearance > Themes > Editor and search header or footer file and then add a code in it. Remember don’t paste the code between any function otherwise your site can be break and don’t forget to make a backup before editing header or footer file.

Insert Header And Footer Code Through a plugin

insert Header And Footer Code


Headers and Footers have a very easy and simple interface. Which you can use to insert Google Analytics, Alexa verification and other scripts to your WordPress site without making your hands dirty in coding. This plugin allow you to add multiple scripts at onces. There is no need to use bunch of plugins. Just install and activate Header and Footer plugin and say good bye to unnaccesery plugins. we hope you found this article helpful. What type of plugin you are using on your blog tell us by leaving a comment below.



About tahir

Muhammad Tahir lives in Lahore, Pakistan. Loves to read and write articles about tech and web resources online.

Check Also

Reset WordPress Password using Email, FTP, Emergency Script

In our previous tutorial we showed you how to reset admin password using the phpMyAdmin …

How to Reset WordPress Password using phpMyAdmin

In our previous tutorial we showed you 3 different ways to reset WordPress password but today …

Automatically Share Old WordPress Posts to Social Media

Nowadays social media platforms are the biggest traffic referral source, which peoples use to gain …

5 Best Contact Form Plugins for WordPress

Contact form helps your readers to contact with you.There are 1600+ Contact Form Plugins available to …

Best Free Dropbox Plugins for WordPress

Dropbox is one of the most well-known company, which provide free cloud storage to their …