Recent Topics

1 Aug 07, 2007 04:50    

My b2evolution Version: Not Entered

I want to put an image into the sidebar, and have it link to another site.

It seems like this can’t be done in the back room blog settings -> display tab. So I wound up adding the image I wanted by inserting this line into the sidebar portion of the skin’s _main.php file:

<li><img src="" alt="Book Cover" /></li>

That gets the picture in the sidebar, and the page still validates without error using the XHTML VALID link. But – I can’t figure out how to make the image into a link to another page. Everything I try just results in the skin not working at all, or no link appearing in the sidebar (even though the jpg appears.)

Any suggestions on how to create a link associated with the image?

The skin (slightly modified version of Guadeloupe) with the modified sidebar is here:

Thanks –


2 Aug 07, 2007 08:52

You just need to link the image as you normally would in html?

<li><a href="" title=" visit my tacky pad "><img src="" alt="Book Cover" /></a></li>


3 Aug 07, 2007 13:46

Well, duh.... You're right.

I tried just inserting a link like that but got a fatal PHP error. I did use the target="_blank" attribute and did not use the title= attribute, so maybe that messed it up. Or maybe I just fat-fingered the typing and botched the basic link. But it is working now.



Form is loading...