• Resolved Oztac

    (@oztac)


    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 https://www.kerform.com/blog Any ideas? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Oztac

    (@oztac)

    It looks like it’s the stylesheet. How can a create a separate style sheet that by menu.php uses?

    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

    (@oztac)

    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.