Adding “Share on Facebook” button to your posts
Here is line of code that if added to your wordpress blog theme will create a link “Share on Facebook”. This will make it easier for your readers to share your posts on Facebook.
No plugin needed. Just add this code where you want the link to appear, but make sure it’s in the loop… somewhere between title of the post and comments codes:
<a href=”http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>” target=”blank”>Share on Facebook</a>
You can replace the “Share on Facebook” text with facebook button.
|
Related Posts |
14 Responses
to “Adding “Share on Facebook” button to your posts”
1 Trackback(s)
- Jul 29, 2009: Blogging – Posts about Blogging as of July 28, 2009 | MelaniedeJonge.com





By ThreeMoneyMethods Online on Jul 29, 2009
That is super-helpful and a great idea.
Thank-you!
By how to make money on Jul 30, 2009
Thanks for the code. The fact that you can just paste the code in your blog is very helpful.
By Ah Hong on Jul 30, 2009
I didn’t place any social bookmarking button plugin in my blog just to reduce load :)
By Another Blogger on Jul 31, 2009
Can I use it to my blogspot?
Thanks for sharing with us brother.
By buat web on Jul 31, 2009
Thanks the code, i will use it at my blog.
David
By mp3 tunes on Aug 2, 2009
Thanks for the info, I was always interested in how other people are doing such a reference on Facebook …
By Marketing Man on Aug 3, 2009
Adding this button to your posts makes it so much easier for people to post stuff they like to their Facebook profiles, for all their friends to see and enjoy. The easier you make it for your readers, the more reward you’ll receive. We all know that one of the basics of human relations is that everybody is inherently lazy, and the easier you make it for people, the more likely you are to get buy-in from your targeted audience.
By Minnesota Attorney on Aug 3, 2009
This is great. It’s so simple. Thank you!
By abrablog on Aug 3, 2009
thanks. I think its good to try it sometimes.
By iphone for free on Aug 4, 2009
Easier to just use a plugin though surely?
By About blogger on Aug 9, 2009
i have also got a very decent search engine ranking to my post about share on facebook link to blogger..
http://about-new-blogger.blogspot.com/2009/06/add-share-on-facebook-link.html
By Cigars on Aug 12, 2009
simple and easy! Thanks!
By South Tampa Homes on Aug 12, 2009
It’s really easy to add facebook button on post and no plugin needed for it. Thanks.