• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Link custom image and title in Sidebar

Skylined

Active member
#1
I've created a new sidebar block and I've included an image in it.
Now I would like to link the image and block's title, but I don't know how to do it.

Could somebody please help me?


Code:
<div class="section">
    <div class="secondaryContent">
        <h3>Title</h3>
        <img src="path/to/image/imagefile.jpg" />
    </div>
</div>
 

Skylined

Active member
#2
I've done it this way.


Code:
<div class="section">
    <div class="secondaryContent">
        <h3><a href="http://mysite.com/link.html">Title</a></h3>
        <a href="http://mysite.com/link.html"><img src="path/to/image/imagefile.jpg" /></a>
    </div>
</div>