Herself's Webtools

Scripts, HowTos, Templates, Plugins, Widgets, Tips

How to add ‘reddit’ links to your blog posts

with 7 comments

First backup your template.

Go to Layout->Edit HTML and click download full template.

Blogger
<a expr:href=’”http://reddit.com/submit?” + “url=” + data:post.url + “&amp;title=” + data:post.title ‘ target=’_blank’>Reddit</a>

For Blogger go to your Template->Edit HTML and click expand widgets.
Find

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://reddit.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>” >reddit</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 Del.icio.us Links to Blogger and WordPress Posts
How to add Stumble Upon Links to Blogger and WordPress Posts

Written by Linda MacPhee-Cobb

May 16th, 2007 at 4:42 pm

Posted in blogger,blogger template,hack your template,how to,wordpress

7 Responses to 'How to add ‘reddit’ links to your blog posts'

Subscribe to comments with RSS

  1. Useful resource for these code snippets – cheers.
    Just a minor typo in your reddit code, a missing ‘

    Working code should be:
    reddit

    (also confused users as to why codes doesn’t work if they copy and paste should know it’s all about the ” and ‘ )

    Sheffield Tiger

    12 Oct 07 at 6:45 am

  2. Sorry, not used to wordpress, try again

    reddit

    Sheffield Tiger

    12 Oct 07 at 6:45 am

  3. Nevermind, I’ll just describe it.

    On the blogger code, there should be a ” before &title=”

    Sheffield Tiger

    12 Oct 07 at 6:50 am

  4. Sorry, I meant to look at this as soon as I has some coffee this morning and it buried.

    I’m not sure – but it’s in front of me so I’ll have an answer up this evening.

    Thank you!

    admin

    12 Oct 07 at 7:04 pm

  5. Thanks it is correct on the post now. There were two quotations missing. One before url and one before title.

    I tested it again and you should be able to type it exactly as above.

    Thank you for letting me it was broken. Clearly I had too little coffee that day.

    admin

    12 Oct 07 at 7:46 pm

  6. I couldn’t find this

    in my html. Is there anything else I can try to get my links to delicious/reddit/stumbleupon posted on my blog?

    I’m new to this…
    http://jessicahthomson.blogspot.com/

    jessicathomson

    13 Jul 09 at 3:24 pm

  7. Try putting in the template near where you see the footer section for each blog post.

    ljmacphee

    15 Jul 09 at 9:15 pm

Leave a Reply

You must be logged in to post a comment.