Page 1 of 1

Image in side bar

Posted: Fri May 09, 2008 11:35 pm
by sloppy robot
How can I put an image in the side bar? Im using link list to have two links to a book, but want to put in a picture of the book.. can I do it with link list or something else? Thanks

Re: Image in side bar

Posted: Sat May 10, 2008 12:19 am
by garvinhicking
Hi!

You could easily add a "HTM nugget" sidebar plugin. In there you can add any HTML code you like, also images...

Regards,
Garvin

Posted: Sat May 10, 2008 1:44 am
by Don Chambers
This is really easy..... the plugin already has 2 places you can insert text, or any html code before or after the link list labeled as follows:

Code: Select all

Enter any text to be shown before the list of links.   
Enter any text to be shown after the list of links.
Let's say you wanted an 200px wide x 150px tall image to display before the list of links. The image is in your media library's root folder (ie, no directories/folders exist in the media library). The filename is myimage.jpg.

In that box, the html code would look something like this:

Code: Select all

<img width="200" height="150" style="border: 0px;" src="/yours9yfolder/uploads/myimage.jpg" alt="" />
Or, let's say the image itself should be a link somewhere, perhaps a place to read/buy the book, possibly even one of the links in the list:

Code: Select all

<a href="http://www.linksomewhere.com/"><img width="200" height="150" style="border: 0px;" src="/yours9yfolder/uploads/myimage.jpg" alt="" /></a>

Posted: Sat May 10, 2008 2:43 am
by sloppy robot
ah nice..thanks.. it works. this place rules.

Posted: Sat May 10, 2008 3:29 am
by Don Chambers
sloppy robot wrote:this place rules.
Yes it does!!!! 8)


Happy to help!