• Hi, I’m trying to use include in my theme and templates. I’m testing this bit of code by putting it in the header.php file.

    $getDir=get_stylesheet_directory_uri();

    include($getDir.’/images/hello.html’);

    I’m trying to get a small html file to load from the images directory but the page does not seem to respond to the include() function.

    What can I be doing wrong?

    Thanks for any suggestions.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why is my include statement not working in the header file’ is closed to new replies.