Title: Simple php includes in header.php isn&#039;t working&#8230;
Last modified: August 20, 2016

---

# Simple php includes in header.php isn't working…

 *  [anp6vq](https://wordpress.org/support/users/anp6vq/)
 * (@anp6vq)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/simple-php-includes-in-headerphp-isnt-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.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [anp6vq](https://wordpress.org/support/users/anp6vq/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/simple-php-includes-in-headerphp-isnt-working/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
