WordPress.org

Forums

Custom Theme - Header Image Broken in Posts vs. Pages (3 posts)

  1. LPerkins
    Member
    Posted 11 months ago #

    Greetings,

    I'm baffled about how this got broken...and how to fix it:

    On my blog's home page (http://www.yes-mg.com/blog/), my logo renders properly in the header.

    But on posts (http://www.yes-mg.com/blog/dont-squander-a-great-visual-concept/), the logo image is broken.

    Might anyone be able to point me in the right direction?

    Thank you!
    Lisa

  2. Shivam Bhalla
    Member
    Posted 11 months ago #

    Maybe check your single.php code, look for where your img is and check to see if you have the php code before you img src.

    example: <?php bloginfo('template_directory'); ?>/images/etc.gif

  3. LPerkins
    Member
    Posted 11 months ago #

    Thank you, Shivam.

    Code in the single.php is the same as the index.php (which I think is the blog's home page, right?):
    <?php get_header(); ?>

    They both call for the header.php — why would it render properly in one template and not the other...?

    Lisa

Reply

You must log in to post.

About this Topic