WordPress.org

Support

Support » Themes and Templates » [Resolved] Adding an Image to the header.php

[Resolved] Adding an Image to the header.php

  • 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

Viewing 1 replies (of 1 total)
  • 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 ‘

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Adding an Image to the header.php’ is closed to new replies.
Skip to toolbar