next copy the following code
<p class='bookmark'>
<a expr:href='"http://digg.com/submit?phase=2&url=" + data:post.url + "&title=" + data:post.title' target='_blank'>Digg it</a>
<a expr:href='"http://del.icio.us/post?v=4&url=" + data:post.url + "&title=" + data:post.title' target='_blank'>Add to del.icio.us</a>
<a expr:href='"http://www.stumbleupon.com/submit?&url=" + data:post.url + "&title=" + data:post.title' target='_blank'>Stumble it</a>
<a expr:href='"http://www.facebook.com/sharer.php?&u=" + data:post.url' target='_blank'>Share on Facebook</a>
<a expr:href='"http://technorati.com/signup/?f=favorites&Url=" + data:post.url' target='_blank'>Add to technorati favorites</a>
<a expr:href='"http://reddit.com/submit?&url=" + data:post.url + "&title=" + data:post.title' target='_blank'>Submit to reddit</a>
<a expr:href='"http://myweb2.search.yahoo.com/myresults/bookmarklet?&u=" + data:post.url' target='_blank'>Add to YahooMyWeb</a>
<a expr:href='"http://www.simpy.com/simpy/LinkAdd.do?href=" + data:post.url' target='_blank'>Submit to simpy</a>
<a expr:href='"http://www.spurl.net/spurl.php?v=3&Url=" + data:post.url' target='_blank'>Submit to spurl</a>
<a expr:href='"http://www.furl.net/storeIt.jsp?&u=" + data:post.url' target='_blank'>submit to furl</a>
</p>
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
37 Responses to “How to add social bookmark links to blogger”
Alex
January 03, 2008Your very good at this! Keep it up! Hope to see more updated this year '08!
Alex
Anonymous
January 18, 2008Is this still valid as of Jan. 2008? I couldn't get it to work, and I've been trying for hours.
Anonymous
January 18, 2008Cool blog, by the way! Great stuff.
Anonymous
February 25, 2008don't know why but it doesn't work for the xml
John F
April 12, 2008Great stuff! Blogrolled you!
Spife
June 03, 2008Thanks for this!
Anonymous
June 10, 2008amazing finally someone who knows what they are doing!!! VERY CLEAR very accurate.. thanks again.. works with XML very easy..
WWW.COLLECTIVECO.BLOGSPOT.COM
Anonymous
June 10, 2008LAWNY... 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
Oikos Nomos
July 04, 2008can you help me please? I would like to add one our local social button to my site. there is provided code for blogger on
http://vybrali.sme.sk/tlacitka/
(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!
http://econoir.blogspot.com/
Lawny
July 04, 2008Oikos try this code I've uploaded a screenshot of the code in notepad see more here
http://kennysed.googlepages.com/social_bookmark.JPG
let me know if that works for you
Oikos Nomos
July 04, 2008Perfect, it's working!
Thank you very much, I asked maybe 5-6 "insiders", and you were the only one with the right answer :)
Doug Cloud
July 29, 2008Wow, this one actually worked. Thank you! One question: would you know how to add images instead of text links?
Lawny
July 29, 2008Yes DCLOUD just replace all the text with an img tag like so
<a expr:href='"http://digg.com/submit?phase=2&url=" + data:post.url' target='_blank'><img src="http://www.MyImage.gif" border="0" alt="Digg it" /></a>
Doug Cloud
July 29, 2008Lawny, 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.
Lawny
July 30, 2008DCLOUD what is the exact code you are trying to add ? could you paste it here or upload a screenshot of it
Doug Cloud
August 01, 2008Ha, 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.
Anonymous
February 19, 2009Hi 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.
Lawny
February 20, 2009@Anonymous as one
yes there is an add to myspace link i will check it out and update this post to include them
Lawny
February 20, 2009@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
Abhilash MS
February 22, 2009Hi,
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
Lawny
February 23, 2009@AbhilashMS
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
Raghu Laghuvaram
February 23, 2009Very Useful, Could you please add code for Blogger post too
Unknown
June 27, 2009Thanks for sharing this. :)
Salman
July 01, 2009Awesome post keep it up I have added links to my blog @ www.tips4blogging.co.cc
Jenn @ My Kind of Strange
July 11, 2009GOD! I love it when the instructions are so darn easy to follow!!! THANK YOU SOOO MUCH FOR THIS!
Alan
October 19, 2009Great 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.....
hack tutors
November 22, 2009Wow! its works
An unwilling lawyer
March 06, 2010The 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?
http://theunwillinglawyer.blogspot.com/
Lawny
March 08, 2010@unwilling lawyer
look for the following css code in your template
.post-footer {
color:#999;
text-transform:uppercase;
letter-spacing:.1em;
font-size: 78%;
line-height: 1.4em;
}
remove the text-transform property and value so it becomes
.post-footer {
color:#999;
letter-spacing:.1em;
font-size: 78%;
line-height: 1.4em;
}
An unwilling lawyer
March 09, 2010Thanks a lot, the aforementioned code has the desired effect. Given that you are a blog-tech enthusiast you might also consider looking at http://www.macmillandictionary.com/tools/doubleclick.html (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.
Kev H
May 24, 2010I managed it OK, but not sure where to put the CSS code, so I just left it out.
Pagla Guru
June 18, 2010Thanks a lot for the wonderful blog post. It's working!!
http://pagalzone.blogspot.com
Lawny
July 13, 2010@Kev
the CSS code goes just before the closing </head> tag
Anonymous
October 31, 2010Excellent. I used it on a blog here:
http://ukpoliticstoday.blogspot.com/
Elle S.
February 26, 2011This is really helpful! Thanks!
CodeMyConcept
March 10, 2011Great way of explaining it, people understand better by watching the process
Satmo54
December 03, 2011This 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.