In an earlier post I explained what text widgets are and how to add them to the sidebar of your WordPress theme. Today we’re going to take a look using the text widget to add links and images to the sidebar.
For purposes of this example, let’s say that you’ve made yourself a wonderful CafePress store. You’d like to put a link to your store in the sidebar of your blog. How exactly do you do that? It does seem a little daunting at first as there’s no visual editor for the text widget.
Here’s the secret . . . open up a new post and use the post visual editor to write the code. Save, but don’t publish, the post. Move to the HTML editor and copy what you’ve done. Then you paste that into the text widget.
Let’s take it step by step.
1 – Start a new post. In the body of the editor put in the text that you want and use WordPress to make the link to your new store.
2 – Save the draft. Be sure not to publish this.
3 – Switch to the HTML view of your post. See what you’ve made? It’s lovely HTML that you can copy and paste into your text widget. That’s all there is to it!
What if you’ve made a swell icon to promote your store? Follow the same steps.
1 – Start a new post. In the body of the editor put in the image that you want. Use WordPress to make the link to your new store.
2 – Save the draft. Be sure not to publish this. Can you tell that I live in fear of accidentally publishing these drafts?
3 – Switch to the HTML view of your post. Look upon the code you’ve made with pride. Copy and paste it into your text widget.
How easy is that? As you can see, using the text widget with your WordPress post editor give you lots of possibilities.