Skip to content

Instantly share code, notes, and snippets.

View 50dollarblogs's full-sized avatar

50dollarblogs

View GitHub Profile
@50dollarblogs
50dollarblogs / functions.php
Created December 29, 2011 17:10
Add social proof to your WordPress site in plain text (see 50dollarblogs.net/social-proof for more info)
<?php
// Add social proof numbers to footer (repositioned to top of page via CSS)
function add_social_proof() { ?>
<div id="social-proof">
<ul>
<li class="facebook"><a href="YOUR_FACEBOOK_PAGE_URL" target="_blank" title="Disrupting the Rabblement on Facebook"><?php facebook_fan_count() ?> Fans</a></li>
<li class="twitter"><a href="YOUR_TWITTER_PROFILE_URL" target="_blank" title="Follow Niall on Twitter"><?php twitter_follower_count() ?> Followers</a></li>
<li class="email"><a href="YOUR_SUBSCRIBER_FORM_URL" target="_blank" title="Subscribe to email updates"><?php subscriber_count() ?> Subscribers</a></li>
</ul>
</div>