Ready to get started?Download WordPress


[resolved] Image is not displayed on other pages.. (5 posts)

  1. kcube
    Posted 8 years ago #

    I added a small imgae in the header.php file and it shows up fine when I am on home page, but doesn't show up on other pages. My blog is at http://www.nriblog.info . Tried on multiple machines and multiple browsers, but no use..

  2. Usayd
    Posted 8 years ago #

    Firstly you're using some dodgey code to display this image:

    <img src="TajMahal.jpg" height=92pixels>

    It should be <img src="TajMahal.jpg" height="92" alt="Taj Mahal" />

    Secondly I am like 90% sure that the theme you are using should not be using tables (did you add them yourself??), and you should be aligning the image using CSS (<div align="right"> at the very least).

    From your source code you can see that the picture is embedded on the website, you are simply displaying it incorrectly.

  3. kcube
    Posted 8 years ago #

    ok..I am not that good at HTML and css.. so, I added the table myself..

    But I don't understand why it is displaying properly on the home page but not on others..

  4. kcube
    Posted 8 years ago #

    Another reason I created a table is the heading is using the html tags h1 and h2 which causes a line break I believe..

  5. kcube
    Posted 8 years ago #

    solved... found the problem.. the image path should be absolute path.. I changed the path to absolute path and it is working fine now.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.