you need to add all code in header.php file at last line only.