Header and Footer wordpress plugin allows you to add html and php code to the head and footer sections of your wordpress site and also before and after each post.
1.Download Header-Footer wordpress plugin. Download link.
2. Unzip and upload it to your WordPress wp-content/plugins directory.
3. Login to wp-admin. In your admin dashboard click plugins and activate the Header-Footer wordpress plugin.