Lot of people ask question like how to add head code in wordpress , where do i add a javascript , how can i add code to head section of wordpress etc. So i plan why not to write a tutorial about how to add head code in wordpress. let 1st we disscuss a little about head code !
Head Code and its Purpose!
A head include information of the page i-e meta tags. Example of a Head code is below<head> My Head code goes here </head>What is the purpose of head code ?? Many scripting languages do different work with the head code , as in head code you may use javascript code or css (cascading stylish sheet) or any other scripting language to perform some task. suppose i want to give a title to my web page and i m not using any software i m just doing it with the help of html for this purpose i need to enter the title tag with having may page title with the head tag or head section.
Example code <head> <title> MY PAGE TITLE GOES HERE </title> </head>Now coming to our own topic how to add head code to wordpress. Adding the something to the means editing the header.php file in your theme / template which is time-consuming and especially complex if you only want to add it to certain pages or posts. To solve this problem there are several plugins that gives you options to add your code to the head section here we are disscussing The "Header and Footer" plugin. remember that it is the name of one plugin. How to install it is very simple follow these steps