Forums
Home / Fixing WordPress / Calling an image from a folder is not possible!
(@hildergarn)
11 years, 11 months 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 🙂
(@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.
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.