Forums

html image tags in php? how to (3 posts)

  1. mjmitche
    Member
    Posted 2 years ago #

    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

  2. stvwlf
    Member
    Posted 2 years ago #

    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=

  3. mjmitche
    Member
    Posted 2 years ago #

    thanks for the reply

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.