Listen Our Online Radio

~~~~~~~~~~~~~~~~~~~~~~~~~~#बिषयसुची #~~~~~~~~~~~~~~~~~~~~~~~~~~

गजल (416) मुक्तक (290) कविता (93) चुटकिला (85) मुक्तक माला (74) nepalimp3 (57) मुक्तक दोहोरि (51) Nepali News (31) मुक्तक दोहोरी (27) हिजो - आज (26) funny picture (23) नेपाली खित्त्का (21) अचम्म संसार (20) साहित्य (17) News (15) गीत (13) दोहोरि (13) हाँस्य-व्यंग्य (13) nepali radio (11) jokes (10) आज देशमा (10) फेसबुके स्टाटस (10) साहित्य समिक्षा (10) Fun (9) converter (9) प्रहार (9) सायरी (9) हाइकु (9) knowledge (8) muktak sarobar (8) mynepal (8) sports (8) कथा (8) सिन्का (8) football (7) ब्यङ्ग्य (7) भावना (6) भाषा/साहित्य (6) लेख (6) आफ्नो कुरा (5) कमिडी (5) जान्नैपर्ने कुराहरु (5) प्रेम (5) सिक्ने ठाउँ (5) मुक्तक दोभान (4) साहित्य सरगम (4) Artist (3) E-Book (3) Facebook (3) blogger tips (3) केस्रा (3) जीवन (3) जीवनी (3) बहकिने मन (3) सूचना (3) Anroid apps (2) facebook posts (2) featured (2) nepali videos (2) software (2) गजल सुधा (2) तपाइँप्रति (2) नाटक (2) प्यारोडी (2) माया के होला (2) मुक्तक दोहोरी रेडियो कार्यक्रम (2) लघुकथा (2) समालोचना (2) सामान्य ज्ञान (2) साहित्य दर्पण (2) स्मृतिका पानाहरु (2) SMS (1) advertisement (1) general (1) nepali film (1) nepali patro (1) system (1) कोशेली (1) गजल गंगा (1) गजल गुन्जन (1) गेडी (1) फोटो गज़ल (1) भलाकुसारी (1) मनोवाद (1) मुक्तक डायरी (1) राशिफल (1) रेडियो कार्यक्रम (1) लिखित अन्तरबार्ता (1) संगीत (1) संवाद (1) साबरी (1) सामुन्द्रिक छल्का (1) साहित्य संगम (1) हास्यव्यङ्ग्य (1)
Home » » Add FaceBook “Like” Button to Each Post

Add FaceBook “Like” Button to Each Post

Applies to Version(s): 

Facebook is arguably the most influential social network in terms of driving traffic and prospects to your web site. Inarguably, Facebook is the most “Liked” of the social networks, with 750 million active users and counting, over half of whom login daily and average some 130 friends each.
Better get on that wagon!
You’re probably on it already. If you have a Facebook account, you may have “Liked” various articles or posts here and there. And even if you don’t have a Facebook account, you can still benefit from the Like button on your site.
Clearly, you want your friends and site visitors to “Like” your content. As a ranking signal to search engines like Google, as “social proof” that your site is worth paying attention to, and more, the importance of Facebook’s Like is impossible to ignore as a smart site owner.
Providing an easy method for your visitors to click a Facebook Like button is the cornerstone to getting started in the Like business.
Adding a Facebook Like button to each of your posts is drop-dead simple in Thesis, and does not require a plugin — the code is down below, for those in a rush to be Liked right now.
While numerous plugins do exist, some of which combine more than one social media network’s version of “Like” (e.g. plus, follow, share) buttons, the maintenance, simplicity, and low resource consumption of a custom function (PHP) make this a user-preferred method for adding Like buttons in Thesis.

But What Does the Facebook Like… Look… Like?

The code shown on this page will appear generally similar in all scenarios, but there are minor differences based on the visitor login status and whether or not a given post has had a Like yet or not.
The first set of images shows a new post with no Facebook Likes so far. The top image represents the visitor view when they, the visitor, are not logged into Facebook. The second image is what will be seen when the visitor is logged into Facebook.
Facebook Like Button - 0 Likes - Logged Out
Facebook Like Button - 0 Likes - Logged In
Note that the Like button has certain variables such as “light” or “dark” — all the images displayed here were generated using the Like code from this entry, which is the “light” version of the Facebook Like button.
Once your post gets its first “Like” from a friend or fan, the Like button changes slightly, demonstrating the number of Likes the post has received. Here is the same visitor view as before, where the post has now achieved a fair number of “Likes” — the first image is a visitor “logged out” of Facebook, and the second image shows the FB Like area from the “logged in” perspective.
Facebook Like Button - Many Likes - Logged Out
Facebook Like Button - Many Likes - Logged In
That’s the sum of the Like button. It’s there, it’s visible, and it’s begging for a click.
To get the above rolling on your Thesis site, simply add this snippet of code to yourcustom_functions.php file contents:
function fb_like() {
	if (is_single()) { ?>

This code places a Facebook Like button at the bottom of each and every “single post” you have on your Thesis website.
Share this article :

No comments:

Post a Comment

Total Desktop view for chukuprakash

number of visits track
Now online in this blog

Please follow me at my Personal facebook ID. Follow Me at chukuprakash's twitter account.
Support : Copyright © 2011. chukuprakash | Nepali Lifestyle,Nepali literature,entertainment,Software - All Rights Reserved
Template Design by Prakash aryal Proudly powered by Blogger