• Hi,

    I have discovered a interesting thing with WP where when I try to insert an image via an image tag:

    <div id=”header”>
    <div id=”headerimg”>
    <h1><img src=”images/websiteLogo.gif” />“><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>
    </div>

    The image does not appear? The path information is correct so I am wondering what’s going on?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, you’ve got an extraneous "> in there in the middle for one thing.

    Thread Starter kajukenbokid

    (@kajukenbokid)

    Ok,

    That was just a typo in the post. I do get the red X, if you know what I mean…

    It is some sort of path issue that is related to the way the page is generated – I guess?

    The image is appearing on the header.php page that I guess appears on many pages – is there some method call I can make to reference the path regardless to where the header appears?

    Thanks

    Thread Starter kajukenbokid

    (@kajukenbokid)

    Hey,

    I found the solution – I had to prepend the the following PHP code to get the proper path:

    <?php bloginfo(‘stylesheet_directory’); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Inserting an image into the header.’ is closed to new replies.