Užitečné pluginy, návody a šablony pro WordPress CMS

Jak přidat Facebook tlačítko “Líbí se mi”

Like
http://wordpress.org/…lugins/like/

The Facebook Like Button Widget adds a ‚Like‘ button to your WordPress blog posts. It uses the new Facebook Like button released on Apr. 21st 2010.

Alternativy

Facebook Likes You!
http://wordpress.org/…k-likes-you/

Facebook Likes You! is simple plugin which makes it easy to add Facebook Like button and widgetable Like box. K dispozici i v české jazykové verzi.

WordPress Facebook Like Plugin
http://wordpress.org/…like-plugin/

Add a Facebook „Like“ Button to your blog posts and increase your visitor engagement instantly! This plugin adds a simple and easy to use Facebook Like functionality with admin options to change the location of Facebook Like button, font, show faces, use the box with count as well as other cool and useful options.

Bez pluginu do šablony
http://duben.org/…o-wordpressu

<iframe src="https://www.facebook.com/plugins/like.php?href=<?php
echo urlencode(get_permalink());
?>&amp;layout=standard&amp;show-faces=true&amp;width=400&amp;action=like&amp;
font=verdana&amp;colorscheme=light"
scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden;
width:400px; height:25px"></iframe>

Automatically add Twitter and Facebook buttons to your posts
http://www.wprecipes.com/…o-your-posts

Paste the code below into your functions.php file, save it, and you're done.

function share_this($content){
    if(!is_feed() && !is_home()) {
        $content .= '<div class="share-this">
                    <a href="http://twitter.com/share"
class="twitter-share-button"
data-count="horizontal">Tweet</a>
                    <script type="text/javascript"
src="https://platform.twitter.com/widgets.js"></script>
                    <div class="facebook-share-button">
                        <iframe src="https://www.facebook.com/plugins/like.php?href='.urlencode(get_permalink($post->ID))
.'&amp;layout=button_count&amp;show_faces=false&amp;width=200&amp;action=like&amp;colorscheme=light&amp;height=21"
scrolling="no" frameborder="0" style="border:none;
overflow:hidden; width:200px; height:21px;"
allowTransparency="true"></iframe>
                    </div>
                </div>';
    }
    return $content;
}
add_action('the_content', 'share_this');
OVX.cz 2003 | Přihlásit se
Bez cookies už dnes těžko provozovat plnohodnotný web. Setrváním zde tudíž vyjadřujete souhlas s jejich používáním. Více informací. | Zavřít.