I wanted a clickable image in a widget, so I set up a new folder on the FTP inside the /images folder called "adverts" and uploaded "imagename.jpg" to it. I added the html to the widget as follows -
The image does not show up in the widget. Nothing shows up at all. So I added in the full URL
That didn't show up either...
So I put the image into the main "images" folder and changed the html to below, removing the "pics" folder...then it worked, the image shows up and is clickable to the url specified.
If I remove the full URL and change it to "forum/images/imagename.jpg" it doesn't show up either, I get the "missing image" icon...
Any idea why I need the full URL and why it won't pick up the image when placed in the "adverts" folder? This is brand new clean install for a test board, no mods. The code works perfectly fine on my normal website, but on the new test install it won't work. The image shows when I type the URL into a browser, but won't show in the widget. Confused.
Code:
<center><a href="http://www.linktosite.com" target="_blank"> <img src="forum/images/adverts/imagename.jpg" /> </a> </center>
Code:
<center><a href="http://www.linktosite.com" target="_blank"> <img src="http://www.mywebsite.com/forum/images/adverts/imagename.jpg" /> </a> </center>
So I put the image into the main "images" folder and changed the html to below, removing the "pics" folder...then it worked, the image shows up and is clickable to the url specified.
Code:
<center><a href="http://www.linktosite.com" target="_blank"> <img src="http://www.mywebsite.com/forum/images/imagename.jpg" /> </a> </center>
Any idea why I need the full URL and why it won't pick up the image when placed in the "adverts" folder? This is brand new clean install for a test board, no mods. The code works perfectly fine on my normal website, but on the new test install it won't work. The image shows when I type the URL into a browser, but won't show in the widget. Confused.
Comment