• Hi,

    I’ve tried to insert images into header.php with a tag like this: <img src=”images/g2h1.gif” width=”200″ height=”95″> but I always get a missing image icon?

    I can get to show up as a background image – no prob – but not as a regular image – any ideas?

Viewing 10 replies - 1 through 10 (of 10 total)
  • use the full URI to the image:

    <img src="http:// www. yourdomain.com/images/g2h1.gif" width="200" height="95">

    the example above is broke for display purposes, dont copy and paste it.

    Thread Starter typezero

    (@typezero)

    Thanx – and a stupid question: on a local installation I have tried:

    <img src=”http://localhost/wordpress/images/g2h1.gif&#8221; width=”200″ height=”95″>

    …but no go?

    and a stupid answer — do you really care if the image displays in a local installation?

    is localhost defined?
    does http:// localhost/wordpress actually bring up the site??

    fight the battles that matter, in other words πŸ™‚ Unless you absolutely need to see the images, I wouldnt worry too much.

    Thread Starter typezero

    (@typezero)

    It does bring up the site.

    “do you really care if the image displays in a local installation?” well, yes I’m trying stuff for a customer – using cms

    Thread Starter typezero

    (@typezero)

    should have read:

    It does bring up the site.

    “do you really care if the image displays in a local installation?” well, yes I’m trying stuff for a customer – I’m using WP as cms and I want to see it all working before uploading.

    Thread Starter typezero

    (@typezero)

    No more ideas anyone…?

    πŸ™‚

    Thread Starter typezero

    (@typezero)

    Have just resolved it myself:

    U have to write the whole path, eg.: <img src=”http://localhost/wordpress/wp-content/themes/vesuvius/images/g2h1.gif&#8221; width=”200″ height=”95″>

    the same goes for uploaded sites…

    i said that πŸ™‚ glad you got it sorted πŸ™‚

    Thread Starter typezero

    (@typezero)

    Yes but I didn’t assume the path should include the particular theme folder etc.

    Any way thanks for the input! And by the way any ideas on a another problem I have run into: “Partly disappearing menu/leftbar.php when link is clicked” listed under “WordPress Support Β» How-To and Troubleshooting” ?

    Cheers

    full URL to the image; if its in a directory that’s part of the URL, and your welcome πŸ™‚

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Inserting images in the header’ is closed to new replies.