Simple php includes in header.php isn't working…
-
So I’m trying to add a simple php file include statement in my header.php file but include is not working… Here’s my code so far.
$themePath=get_template_directory_uri(); $toolbarPath= "$themePath/comm_toolbar/toolbar_initialization.php"; if (! include ($toolbarPath)){ echo "No File included"; }My header always outputs no file included!
What obvious thing am I missing here?
Thanks for your help in advance.
-Alex
The topic ‘Simple php includes in header.php isn't working…’ is closed to new replies.