1. 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

Discussion in 'Styling and Customization Questions' started by Skylined, May 12, 2016.

  1. Skylined

    Skylined Active Member

    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>
     
  2. Skylined

    Skylined Active Member

    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>
     

Share This Page