How to add Del.icio.us links to your posts
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 to 'How to add Del.icio.us links to your posts'
Leave a Reply
You must be logged in to post a comment.
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?
Mike Blitz
1 Jul 07 at 7:08 am
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.
herself
1 Jul 07 at 2:25 pm
Thanks,
It was really what I was looking for.
The Teacher
19 Jul 07 at 3:52 pm
You’re welcome!
herself
19 Jul 07 at 11:43 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.
Katherine
5 Aug 07 at 2:01 pm
Glad to help and Thank you for the link.
herself
5 Aug 07 at 2:18 pm