When you are building a WordPress site, it is easy to add a hyperlink in the content section of a page but if you are adding text in a text widget and you want to put in a hyperlink, it may be difficult if you don’t know the html code. For example, you may want to add a link to a sister website or your ‘Contact’ page so users can easily access it.
To add a hyperlink, use the code below:
Additionally, if you want you link to open in a new tab, simple add target=”_blank”, like the example below:
Lastly, if you need an image to link to something instead of text simply replace the random example text with the image source code below. This is useful for banners or advertisements on your site.
By Tony Fong