I recently wanted to add social bookmarking links to all of my blog posts. As you might notice my blog is hosted on blogger, only way I could do that is by editing the template. I thought I would share how to get about editing the template such that you add social bookmarking links which will automatically add the post permalink and the title if possible.
To edit the template, Sign into your blogger.com account and goto Template -> Edit HTML and then select Expand Widget Templates. Search for <data:post.body/>
, just after <data:post.body/><div style="clear: both;"> <!-- clear for photos floats -->
insert the following code.
[code language='xhtml']
[/sourcecode]
Add the following code before ]]>
.
[sourcecode language='css']/** Service links style **/
.service-links {
padding-top: 3px;
}
.service-links ul.links {
margin:0pt; padding:0pt;
}
.service-links ul.links li {
display:inline;
list-style-type:none;
padding: 0pt 0px;
background: none;
}
.service-links ul.links li img {
border: none;
padding: 3px;
}
.service-links ul.links li a {
border: none;
text-decoration: none;
}[/code]
Then save the template. Adding social bookmarking links and submitting your posts to social bookmarking networks would improve the visibility of your blog and help drive traffic to your blog.
Testing OpenID Seatbelt from VeriSign
It does not work at all..i tried 6 times…same error message
XML error message: The reference to entity “url” must end with the ‘;’ delimiter.
i keep getting the same message as well
appsman and melfi, did you put the html in the proper place as mentioned. I seem to have no issue with this code.
Same error here
same aerror as other users are getting.
Getting the same error as well 🙁
to correct the error check out:
http://woork.blogspot.com/2007/10/blogger-hack-add-delicious-button-with.html#comment-1403478999955920535
just a simple xml correction
(change all of the & to &)
oops… :O
that’s change all of the
&
to
& a m p ;
(the ampersand command for ampersand)
Worked beautifully with the workaround–thanks!
Tervetuloa takaisin sosiaaliseen verkostoon! Tämä sivusto on esimerkki, miltä sinun sosiaalisen verkoston sivusto voi näyttää. http://www.naz.net
I'm still having trouble making the icons run horizontally even after I fixed the & issue…anyone also run into this?
Also, I'd like to have these links insert the URL that is being bookmarked as you link over to each service. Is this code meant to do that?
@gathering: Did you add the styles as well?
Thank you, this cover most/all bookmarks, was easy to place and works!
I find the little lines between the logos (only in IExplorer) annoying, I couldn’t get rid of, any ideas?
Try adding following to “Service links style”.
.service-links ul.links li a {
border: none;
text-decoration: none;
}
Thank you! it worked perfectly!!!
you are a GENIUS! If you have ANY idea how MANY HOURS I spent researching this topic (for my blog). And how frustrated I’ve been getting with all of the wrong coding, you would feel like a superhero! 🙂 Thank you so much! I think what I was doing wrong was adding the code below the [ clear for photos floats–> ] rather than attaching it right next to the >. Thank you a MILLION! You just literally made my afternoon!!!! P.S. I posted your site/link/help on my twitter!!
I just found you searching this topic on Google and thank you, this worked great for me! I do have a couple of questions if you get a chance: 1-How do I add Twitter to the icon list? and 2-How do I get the links to pop up in a new window? Thanks again!
I tried it but images are displayed only in preview. When i saved the template and opened my blog, none of the network link images are displayed. Where might I have went wrong??
Please download the icons and host it somewhere. I had to deny access to the icons because some popular blogs used it costing me bandwidth without even a link back.
Hi! Thanks for this. I’ve been trying to get this to work. Do you have any code to add READ MORE in Blogger?
Haven’t found my luck so far.