Get the ALL THEMES PACK for a cheap price. Learn More »

How to Add Links in a Text Widget

Mike / September 5th, 2009 / 4 Comments »

One of the features that I would love to see in wordpress core is having the text widget with a wysiwyg editor, just like the editor we use to create a new post or page and that makes it so easy for you to insert images, links and lets you easily play with your text without having to know code.

To add a link in your text widget, the html code you should use is this :

<a href=”http://yoururl“>some text</a>

The url might be an internal or external link in the form http://www.vivathemes.com , and some text , is the text visible to the user.

Sometimes when you want to point the visitor to an external site, you may want the new site to be opened in a new tab in your browser, so that the user stays in your website. In this case you add to the code target=”_blank”

So, the new code is :

<a href=”http://www.yoururl” target=”_blank”>Some text here </a>

If you want to have some space above the link, if it will be in the form of read more, like in the widgets in right sidebar of our website, you can simply add a  <br/> before the link code, which will cause the link to go to next line.


4 Comments

  1. Ria says:

    Hi, that plug in doesn’t seem to work in the latest version of wordpress, any other recommendations?

  2. Kim says:

    The code does not work for republica. Can you please provide advice on how to get it to work? Thanks!

Leave a Reply