Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Images in widget (http://forum.bytesforall.com/showthread.php?t=3125)

Thursday Aug 24, 2009 01:27 PM

Images in widget
 
Can someone please explain how I can get images, i.e. photos in a widget in a sidebar? If I upload an image to my site and 'grab' its URL, all I get is the actual URL text in the widget and the same thing happens if I grab the URL from my Flickr page. If I grab the HTML from the Flickr page, I get part of the picture (too big to fit in the sidebar) and, on clicking on it, it links to my Flickr page which I don't want. Using another template, I simply grabbed the URL from my Flickr page, uploaded it and got a small version in the sidebar. When someone clicked on it, they got a bigger version but not linked to Flickr. I'll happily make another donation if someone can solve this problem that I've spent hours trying to figure out, given that my knowledge is Basic!
Thanks in advance.

juggledad Aug 26, 2009 06:47 PM

add a text widget and then in the text area use something line this
HTML Code:

<img src="http://yourdomain.com/wp-content/uploads/2009/05/mypic.jpg" alt="my alt" title="My title" width="136" height="191" class="size-full wp-image-xxx" />
adjust the height and width to the width of the sidebar.

Thursday Aug 28, 2009 10:07 AM

Thanks for responding. I've put the following in a text widget and got the small cross in a box. What have I done wrong?

<img src="http://www.thursdays-child.com/wp-content/uploads/2009/08/Moth.jpg alt="my alt" title="My title" width="146" height="191" class="size-full wp-image-xxx" />

Thanks
Thursday

juggledad Aug 28, 2009 10:25 AM

you forgot the end " after .jpg - it should be
HTML Code:

<img src="http://www.thursdays-child.com/wp-content/uploads/2009/08/Moth.jpg" alt="my alt" title="My title" width="146" height="191" class="size-full wp-image-xxx" />
note the " after '....jpg' and before 'alt=...'


All times are GMT -6. The time now is 11:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.