Title: Include a PHP file into header.php
Last modified: August 19, 2016

---

# Include a PHP file into header.php

 *  Resolved [Oztac](https://wordpress.org/support/users/oztac/)
 * (@oztac)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/include-a-php-file-into-headerphp/)
 * Hi, I’m trying to include a javascript menu bar that I made on my wordpress blog
   and I can’t seem to get it to work. I put the following line of code `<?php include('
   menu.php'); ?>` into my header.php file, but when I go to look at my site it 
   just shows up as a white block. The links on the block still work, but it doesn’t
   show up. My site is located at [http://www.kerform.com/blog](http://www.kerform.com/blog)
   Any ideas? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Oztac](https://wordpress.org/support/users/oztac/)
 * (@oztac)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/include-a-php-file-into-headerphp/#post-961769)
 * It looks like it’s the stylesheet. How can a create a separate style sheet that
   by menu.php uses?
 *  [tugbucket](https://wordpress.org/support/users/tugbucket/)
 * (@tugbucket)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/include-a-php-file-into-headerphp/#post-961771)
 * the path to the images is wrong. In your CSS for `#tab a` you have:
 * `background:transparent url(images/bright_110.gif) no-repeat scroll right top;`
 * it needs to be:
 * `background:transparent url(/images/bright_110.gif) no-repeat scroll right top;`
 * notice the addition of a “/” before “images”
 *  Thread Starter [Oztac](https://wordpress.org/support/users/oztac/)
 * (@oztac)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/include-a-php-file-into-headerphp/#post-961772)
 * Wow, thank you so much. That solved the problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Include a PHP file into header.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Oztac](https://wordpress.org/support/users/oztac/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/include-a-php-file-into-headerphp/#post-961772)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
