First backup your template.
Go to Layout->Edit HTML and click download full template.
Blogger
<p><a expr:href=’”http://del.icio.us/post?” + “url=” + data:post.url + “&title=” +data:post.title’ target=’_blank’>Add to Del.icio.us</a></p>
For Blogger go to your Template->Edit HTML and click expand widgets.
Find <p class=’post-footer-line post-footer-line-3′/>
It’s about three quarters of the way down in most templates.
Then just add the above code just below that line.
Wordpress
<p><a href=”http://del.icio.us/post? &url=<?php the_permalink() ?> &title=<?php the_title(); ?>”> Add to Del.icio.us</a></p>
You will want to edit your template to add the link.
Go to Presentation->Theme Editor
Select Main Index Template, or index.php or what ever the index page is called in your template.
Find the section that has the postmetadata add the above code in there somewhere that looks nice on your template.
See also:
How to add Digg Links to Blogger and Wordpress Posts
How to add Stumble Upon Links to Blogger and Wordpress Posts
How to add Reddit Links to Blogger and Wordpress Posts
6 responses so far ↓
1 Mike Blitz // Jul 1, 2007 at 7:08 am
Helpful post. Thanks.
Although I have to say that I could only get it to work on one of my two WordPress blogs.
Would it be possible that different themes use different terms for the permalink?
2 herself // Jul 1, 2007 at 2:25 pm
It should work on all templates. WP does not say it only works in specific versions ( http://codex.wordpress.org/Template_Tags/the _permalink ) so it should just work for you.
You might try permalink_anchor() and see if that works better for whatever template you are using.
What do you get for a link? ?url=http…..
If that is the url of the page double check for typos, sometimes deleting and retyping a line magically fixes things.
If that is ok, is the part of the link with your username showing up ok?
http://del.icio.us/herself
When you click on the del.icio.us link you should see something like this:
http://del.icio.us/herself
?url=http%3A%2F%2Furl.com/dir/page.html
( I shortened that for readablility )
Check those and if you are still having trouble post back with what the link is when you click on it, your theme and what OS and browser you are using and I might be able to help some more.
3 The Teacher // Jul 19, 2007 at 3:52 pm
Thanks,
It was really what I was looking for.
4 herself // Jul 19, 2007 at 11:43 pm
You’re welcome!
5 Katherine // Aug 5, 2007 at 2:01 pm
Thanks for the post - I’ve been looking for this for a bit - works fine - and your blog post is now posted on my weekly-round-up post of ‘good and/or interesting links found last week.
6 herself // Aug 5, 2007 at 2:18 pm
Glad to help and Thank you for the link.
You must log in to post a comment.