Author LynneHuy
2015
5
Premium
Rank 1258

Being able to add a clickable image to the sidebar on your website can really come in handy.

You can create an attractive image easily using Canva and then add it to your sidebar with a link to another page on your website, a lead page or affiliate offers. If I am creating an image for my sidebar I usually make it 300 x 250, but you can play around and see what size you like.

Then I upload that image into my media library of my website.

Whenever I need to know how to code something my go to place is always w3schools but there are loads of free places you can learn to code.

Anyway here is the code for adding a clickable image, showing the items you need to replace in red:

And here you can copy and paste it from below:

<a href="DESTINATION URL">

<img src="IMAGE URL" alt="ALT TEXT" style="width:000px;height:000px;border:0;">

</a>

Just replace the destination URL with the link to the place you want to send your readers and the image URL with the url for your image in your media library.

Then add in your alt text and change the 000 width and length with your image sizes.

When you have your code ready just go to Appearances, then Widget and add in a text section to your sidebar and pop in the code and save it.

I hope you have found this helpful :)



Join the Discussion
Write something…
Recent messages
Traveller75 Premium
Thanks Lynne, I was wondering about this and now here it is.
Wayne
Reply
Kav Premium
Thanks
Reply
RoriO Premium
Wow, Lynne, you keep outdoing yourself! Thanks! Great info.
Reply
Chrissies Premium
Many thanks Lynne and Loes, this is really useful :)
Reply
Loes Premium
That can be done way easier Lynn. I have a test post in draft, I upload the image, add the link to it, open in new tab and copy the code from the text area, and paste it into the text widget
Reply
LynneHuy Premium
Thanks Loes, I have never done it that way!
Reply
Loes Premium
You should try it:))
Reply
LynneHuy Premium
But then I would have a draft blogs with images floating around? I'm so used to just writing basic code now that it comes second nature LOL.
Reply
Loes Premium
All my websites have one draft blog, to try things out
Reply
Top