Ready to get started?Download WordPress


[resolved] Image not showing up (3 posts)

  1. Happyworker
    Posted 8 years ago #

    Hi All, yes but another 'image not showing up' post. This one has me confused though and hopefully someone can help.
    I'm trying to get this image in there
    This is the funny part...when I put my logo(at the top left) within that space (directly to the right of it), it shows up, however when I put anything else in...it doesn't show up. Hmm. Here is the css and php as of right now.
    .logo img {position:relative; margin: 0px; padding: 0px;}

    <div class="logo" style="border:1px solid #000; height: 50px; width: 250px;"><img src="../images/inprint.gif" border="0" alt="JGS" height="50px" />
    I have had other problems which have been resolved...for instance *.png that needed to be brought into Photoshop and saved for web as PNG-8. I'm not sure if this was an isolated case or if this actually means the template is only reading certain files....thought I'd bring it up though.
    Thanks in advance for the help.

  2. The problem is that you're calling the image with a relative path:


    Which means "look in a folder called "images" which is inside the folder one level above the current folder"

    So on your home page, it's looking here:


    Change the path to

    <img src="<?php bloginfo('stylesheet_directory')?>/images/inprint.gif">

    And you should be fine.

  3. Happyworker
    Posted 8 years ago #

    Yes that worked, thank you. I guess I should follow this format for calling images. All my other images are showing up though.
    Any event, I learned something new --a little bit of PHP-- cool, thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.