WordPress.org

Ready to get started?Download WordPress

Forums

Calling an image from a folder is not possible! (3 posts)

  1. hildergarn
    Member
    Posted 1 year ago #

    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 :)

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  3. hildergarn
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic