WordPress.org

Ready to get started?Download WordPress

Forums

Images not showing up (5 posts)

  1. naveenmedia
    Member
    Posted 9 years ago #

    Is it possible to "hard code" images into the template?

    In the header.php file, I'm trying to add an image in the images folder. I've quadruple checked the code, and it seems okay to me. Here it is:

    <table border="0" width="750" cellpadding="0" cellspacing="0">
    <tr>
    <td><img src="images/header.gif" border="0"></td>
    </tr>
    </table>

    It's that "header.gif" image that I want to add. It goes above the stuff the wordpress template generates.

    The URL is: http://www.naveenmedia.com/portfolio/

    Is there anything I have to do with the CSS to allow the page to read images hardcoded in? And yes, the image is in the images folder.

    Any help is greatly appreciated!

  2. merfnet
    Member
    Posted 9 years ago #

    if you are using 1.5 just use the kubrickheader.jpg name and make what everheader you want, dont have to change the name, and load it up that will fix it

    thats what i did

  3. Kafkaesqui

    Posted 9 years ago #

    "And yes, the image is in the images folder."

    http://www.naveenmedia.com/portfolio/images/header.gif

    You sure? (That is the location "images/header.gif" in an img tag would be pointing at.)

  4. naveenmedia
    Member
    Posted 9 years ago #

    Kafkaesqui, you were right.

    Well, sort of. I was putting the image into the images folder under the theme folder.

    I should have been putting it into the "wp-images" folder. Forgot how templates work, and that all relative links must refer from index.php in the root folder for the blog, and not from within the folder for the theme.

    Thanks!

  5. pb6501
    Member
    Posted 7 years ago #

    so say for instance if i have installed blix, none of the associated gifs or jpgs show up when the theme is activated. in which folder should the image files be placed?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.