How to add social bookmark links to blogger

Today im going to show you how to add social bookmark text links below your blog post so people can bookmark it or whatever. So first save a backup copy of your template before editing now you will need to expand widget templates and look for the following code in the screenshot below

next copy the following code

<p class='bookmark'>

<a expr:href='";url=" + data:post.url + "&amp;title=" + data:post.title' target='_blank'>Digg it</a>

<a expr:href='";url=" + data:post.url + "&amp;title=" + data:post.title' target='_blank'>Add to</a>

<a expr:href='";url=" + data:post.url + "&amp;title=" + data:post.title' target='_blank'>Stumble it</a>

<a expr:href='";u=" + data:post.url' target='_blank'>Share on Facebook</a>

<a expr:href='";Url=" + data:post.url' target='_blank'>Add to technorati favorites</a>

<a expr:href='";url=" + data:post.url + "&amp;title=" + data:post.title' target='_blank'>Submit to reddit</a>

<a expr:href='";u=" + data:post.url' target='_blank'>Add to YahooMyWeb</a>

<a expr:href='"" + data:post.url' target='_blank'>Submit to simpy</a>

<a expr:href='";Url=" + data:post.url' target='_blank'>Submit to spurl</a>

<a expr:href='";u=" + data:post.url' target='_blank'>submit to furl</a>


and paste it like ive done in the following screenshot

now we will add some CSS code to create some spacing in between each of those links so copy the following CSS code

.bookmark a:link {
margin:0 8px 0 0;

and paste it just before the closing skin tag like ive done in the following screenshot below

now if you preview your template before saving you should see some text links like mine in the screenshot below

you can play around with the CSS code to create more spacing also you could change the margin to padding just see what you can come up with.

If you enjoyed this post dont forget to comment and let me know if it worked for you

38 Responses to “How to add social bookmark links to blogger”

Your very good at this! Keep it up! Hope to see more updated this year '08!

Is this still valid as of Jan. 2008? I couldn't get it to work, and I've been trying for hours.

Cool blog, by the way! Great stuff.

don't know why but it doesn't work for the xml

Take a look at, a new social bookmarking website
It is an online system that allows you to easily access, categorize, share and store your bookmarks online
Entopica offers a free registration and it is both quick and easy. Register now and discover a whole new world of social bookmarking

Great stuff! Blogrolled you!

Thanks for this!


June 10, 2008

amazing finally someone who knows what they are doing!!! VERY CLEAR very accurate.. thanks again.. works with XML very easy..



June 10, 2008

LAWNY... one last question i got everything to work fine... and i took out some links/social bookmarks i dont need.. but by doing so.. i had to put dashes or hypens in its place.. how do i take that out without my code getting ruined...

the problem is that.. the entry titles get smashed to one side.. and the template is all off

can you help me please? I would like to add one our local social button to my site. there is provided code for blogger on
(codes #5 and #6)

but when i implement it, mistake occurs :The value of attribute "href" associated with an element type "null" must not contain the '<' character.

i think problem is with html vs xhtml, but i can't move. Do you know what to do?
Thank youuuu!

Oikos try this code I've uploaded a screenshot of the code in notepad see more here

let me know if that works for you

Perfect, it's working!
Thank you very much, I asked maybe 5-6 "insiders", and you were the only one with the right answer :)

Wow, this one actually worked. Thank you! One question: would you know how to add images instead of text links?

Yes DCLOUD just replace all the text with an img tag like so
<a expr:href='";url=" + data:post.url' target='_blank'><img src="http://www.MyImage.gif" border="0" alt="Digg it" /></a>

Lawny, thanks, that worked. Right now I'm trying to install the Add This bookmark button, because it is just one button that offers a dropdown with all the bookmarking sites. Unfortunately, even though I have the code in the correct place, the button is not appearing on my blog. Weird.

DCLOUD what is the exact code you are trying to add ? could you paste it here or upload a screenshot of it

Ha, I figured out why the bookmark button wasn't showing up. I had replaced the title of my posts with a graphic and since there was no post title to link to the button wasn't showing up. I have fixed the problem by making the graphic a background image so the title can still appear.

Hi there I have followed your instructions and have implemented them into my blog posts. I was wondering if you knew of a an add to MySpace link I am not a hundred percent sure if myspace has such a feature.

@Anonymous as one
yes there is an add to myspace link i will check it out and update this post to include them

@Anonymous as one
i have added the MySpace link to the footer of my blog posts you can see it above so when it is clicked it will only share a link to the post title but not the content of the post but if you want to share the content of your blog post i can make it do so also you will need to email me for the code because if i posted it here blogger would alter the code so it wouldn't work anymore


Thanks my dear friend. Today I have added the Social Bookmarking links in my blog. Your How to Guides are so easy to follow that I'm now directly editing my HTML codes without trying in a new template :)

Also is there a way to Change the "Labels" in blogger template to something like "Follow this link for more similar posts" or "Categories".

No hurry, when you get time please post an article on it.

Thanks Again.

Abhilash MS

you can change the word "Labels" by going to the page element tab and clicking edit on the post widget then change the text for the "Label" field to whatever you want

Very Useful, Could you please add code for Blogger post too

Thanks for sharing this. :)

Awesome post keep it up I have added links to my blog @

GOD! I love it when the instructions are so darn easy to follow!!! THANK YOU SOOO MUCH FOR THIS!

Great thanks. Clear, easy to follow and most importantly - IT WORKS!!! so thanks for sharing and for saving me a lot of headaches trying to work it out for myself.....

The code worked fine, but I have a question though the share links are in caps (as shown in your screenshot) those present at your blog is in small letters, is there a way to have them in small?

@unwilling lawyer
look for the following css code in your template

.post-footer {
font-size: 78%;
line-height: 1.4em;

remove the text-transform property and value so it becomes

.post-footer {
font-size: 78%;
line-height: 1.4em;

Thanks a lot, the aforementioned code has the desired effect. Given that you are a blog-tech enthusiast you might also consider looking at (free double click dictionary facility in bogs) and may be simplify the codes or write it in a language that average users like me can understand.

I managed it OK, but not sure where to put the CSS code, so I just left it out.

Thanks a lot for the wonderful blog post. It's working!!

the CSS code goes just before the closing </head> tag

Excellent. I used it on a blog here:

This is really helpful! Thanks!

Great way of explaining it, people understand better by watching the process

This is very helpful ! Many thanks !

Leave a Reply

Comments are moderated before appearing on site, comments that contain suspicious information, self-advertising or spam-like URLs will be deleted.

Note: only a member of this blog may post a comment.

Copyright © 2019 All Rights Reserved | Privacy Policy | Disclaimer Design by LawnyDesigns | Powered by Blogger