WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding an Image to the header.php (2 posts)

  1. cloudwindgate
    Member
    Posted 10 months ago #

    I'm integrating a word press blog into my site and I want it to look as close to the rest of my site as possible. I'm doing all this locally with XAMPP.

    So I'm adding the navigation and banner from the other pages into the header.php file. The text of it all shows up; however, there are no images. Searching around gave me that I need to use this
    <img src"<?php bloginfo("template_directory")?>/img/logo.png" alt="" />
    I can't seem to figure out template directory nor can I get the images to show up. Any help is greatly appreciated
    thank-you

  2. cloudwindgate
    Member
    Posted 10 months ago #

    wow just after I post this I figure it out. I'm so sorry!

    the answer is that it needs to be <img src"<?php bloginfo('template_directory')?>/img/logo.png" alt="" />

    I swear coding sometimes

    the " should be '

Reply

You must log in to post.

About this Topic