I use a header.php that I created in my root directory because it’s easier to update my layouts that way. But when I try to use it in that code from the link above:
<?php
define(‘WP_USE_THEMES’, false);
require(‘./header.php’);
get_header();
?>
I get an error:
Fatal error: Call to undefined function: bloginfo() in /home/content/x/x/x/xxxx/html/header.php on line 98
Is there a way to use a header from the root directory that includes wordpress codes on pages without the blog on it?