WordPress.org

Support

Support » How-To and Troubleshooting » Calling an image from a folder is not possible!

Calling an image from a folder is not possible!

  • hildergarn
    Member

    @hildergarn

    Hi. I’m trying to call a picture I got on the images folder. I want to display it inside a widget and i’m using this code

    <a href="http://www.trivago.es/bilbao-31761/hotel"><img src="../images/trivago.jpg" alt="Hoteles en Bilbao" /></a>

    i’m not a html pro so a little help would be highly appreciated 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi
    Forum Moderator

    @esmi

    You must always use absolute (full) urls in WordPress. so, assuming this images folder is off the root folder, something like:

    <a href="http://www.trivago.es/bilbao-31761/hotel"><img src="http://www.trivago.es/images/trivago.jpg" alt="Hoteles en Bilbao" /></a>

    should work.

    hildergarn
    Member

    @hildergarn

    I got it now, but I’m using a temporary url the hosting provided me until I finish the blog, so I’ll see if it works the way you mentioned.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calling an image from a folder is not possible!’ is closed to new replies.