Tutorials

How To Add Header And Footer Code In WordPress?

I know that a lot of WordPress beginners have problem with customizing WordPress theme. One of easy but hard for beginners thing is adding custom code to header or footer in WordPress. This is really easy if you are using simple plugin to do it. In this short tutorial, I will show you how to add header and footer custom code in WordPress.

Why I need this?

Let’s see: you want to install Google Analytics in WordPress, but you don’t want to edit WordPress functions.php file. Or for example, you would like to add some custom javascript code in footer. This tutorial shows you how to insert code without coding with plugin Insert Headers and Footers.

How to add code to footer or header in WordPress?

First, please download and install plugin Insert Headers and Footers. After this, go to Settings > Insert Headers and Footers page.

Now, if you want to add custom code to Header, copy & paste it to first textarea, if to footer copy to second textarea. After this, click save and that is all. I hope now you will know how to add header and footer code in WordPress. If you have any questions, feel free to contact with me.

Leave a Comment

Your email address will not be published. Required fields are marked *