• Hi,

    I’m trying to put a little image above my header in Neoclassical theme.

    does an html image tag work in php?
    `<img src=”angry.gif” alt=”Angry face” />’

    I’m not sure if I’ve screwed up the code, or just haven’t sourced the image from the proper directory.

    If I have the code correct (i.e. html image tag) can you tell me how I write the source if the directory is the domain name i.e.

    <img src-"www.domainname.com/angry.gif/>

    I tried this code and it didn’t work. Please help if you can, thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Most likely the image is not in the root folder – you need the path to the image. If you uploaded it in WordPress it is likely in
    /wp-content/uploads/angry.gif

    Get the image displaying in your browswer by discovering the actual URL to it through trial and error, then copy that URL into your <img src=

    Thread Starter mjmitche

    (@mjmitche)

    thanks for the reply

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

The topic ‘html image tags in php? how to’ is closed to new replies.