• Hey, I made a new header, called “headerpage.php” specically for certain pages on my wordpress site.

    i saw on a random website that to grab a custom php header, you need to use:

    <?php include(“headerpage.php”); ?>

    However, when I do this, I see the following error at the top of my page:

    Warning: include(“headerpagephp”): failed to open stream: No such file or directory in C:\xampp\htdocs\wordpress\wp-content\themes\twentyten-child\page.php on line 8
    
    Warning: include(): Failed opening '“headerpagephp”' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\wordpress\wp-content\themes\twentyten-child\page.php on line 8

    I know the file is there, so not sure what is going on… anyone have any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Grab Custom Header.php File Created? (not header.php, custom one)’ is closed to new replies.