Create a file inside the includes directory call header.php and add your code in there.