Monday, July 23, 2007

Adding StumbleUpon, DiggIt! and links to your blog posts

I wanted to add a bunch of the popular bookmarking sites to my blog posts. When I went to look for info, I found a little bit of info all over the place. :)

Check out TechWrap and the Dummies Guide to Google Blogger Beta, where I got the basis of the information that I built upon below.

The instructions below work with the new blogger beta, using the new layouts feature, not templates (even though it may still be called "template" in the menu). Go to Template/Edit HTML, and be sure you have the "Expand Widget Templates" box checked.

Find this line in the HTML:
<p class='post-footer-line post-footer-line-3'/>

Alternately, it may appear as
<p class='post-footer-line post-footer-line-3'>

Underneath it, add the following lines of code:
<a expr:href='""+ data:post.url + "&amp;title=" + data:post.title' target='_blank'>StumbleUpon</a> |
<a expr:href='";url="+ data:post.url + "&amp;title=" + data:post.title' target='_blank'>DiggIt!</a> |
<a expr:href='""+ data:post.url + "&amp;title=" + data:post.title' Title='' target='_blank'></a>

That will add three of the most popular bookmarking sites to the bottom of your Blogger posts! Enjoy!

I've tested it, and it looks to work properly - if you notice it doesn't though, let me know!


Plopple said...

I've just added the code to my blog.
Will let you know if I have any problems.


Patsy y Francisca said...

Thank you! Easy as pie. Hope it works.


Perfect! Worked the first time. Thanks for being thorough and complete with the code and the instructions.