How to add a blog badge in WordPress.comSeptember 4, 2009
Everyone can tell you how to add a blog badge (aka button) in Blogger. It’s harder to do in WordPress because they don’t allow the textarea tag. But they do provide their own proprietary way of displaying what you want.
<a href="http://grudgemom.wordpress.com" target="_blank"><img src="http://grudgemom.files.wordpress.com/2009/07/button.jpg" alt="GrudgeMom.wordpress.com"></a>
Now how did I do that? WordPress has this fancy code tag
[ sourcecode language='html' ] [ /sourcecode ] (without the spaces around the [ and ]) that you can use to display your html as html, without it being stripped. It also comes with a handy “Copy to Clipboard” link and “View Plain” which opens the html in another window as plain text. VERY handy!
No need to use the textarea tag at all for your badge. Just the link, image and end link.
If you can’t get it to work, let me know and I’ll see if I can help.
Edited to add an image of my current code as a sample, in a format that WordPress can’t render!