This is a more specific post than the earlier tutorial on the “mighty text box” which outlined what we could include in the Text box widget.
Adding just a link: Go to Appearance, Widgets and drag a fresh text box into your sidebar. Within that put your link (I usually copy and paste, to be sure it’s right). Now you need to “tell” WordPress that it is a link by placing some html code around the link; the code you need is <a href=”http://yourlinkaddress.com/”>Text for your link</a>
The a tells WordPress and the Internet that a link follows, and the href says where the link is, and you do need to be sure to “close” your link with the </a>
So, for a link to the Blogmistress free healthcheck the code would be:
<a href=”https://www.blogmistress.com/wordpress-healthcheck/”>Book your free WordPress healthcheck here</a>
<a href=”https://www.blogmistress.com/wordpress-healthcheck/”><img src=”https://www.blogmistress.com/images/healthcheck.jpg” alt=”wordpress healthcheck” /></a>
Of course you may want to link to an image that is already online, such as something within wikipedia – do be sure that you are allowed to use any images from elsewhere, and you simply use that image’s url instead of the one you uploaded.
And it is possible to add a link and/or image to your WordPress sidebar without using a widget, but that means rolling up our sleeves and coding into the theme’s files – we’ll cover that later.