I have been using Thesis WordPress theme on Tech Exclusive for last 8-10 months. Looking at the overall results, it is one of the best themes I have ever used in my blogging journey.
Of course, Thesis theme doesn’t bring many advanced UI features to the blog. I have customized it to suit the needs of regular visitors, and one such change is Tweetmeme and Facebook Share buttons in the byline.
Well, here’s how you can also implement these buttons on your blogs too.
How to add Facebook Share and Tweetmeme Buttons to Thesis Byline?
1. Open your blog’s dashboard and go to Custom File Editor.
2. Copy-Paste following code in the custom_functions.php file.
function custom_byline() { ?>
<div style=”float:right; margin-top:-17px; margin-right:-0px;”>
<a name=”fb_share” type=”button_count” share_url=”<?php the_permalink() ?>”
href=”http://www.facebook.com/sharer.php”>Share</a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>
</div><div style=”float:right; margin-top:-17px;margin-right:-10px;”>
<script type=”text/javascript”>
tweetmeme_url = ‘<?php the_permalink() ?>’;
tweetmeme_style = ‘compact’;
tweetmeme_source = ‘TechExclusive’;
tweetmeme_service = ‘bit.ly’;
</script> <script type=”text/javascript” src=”http://tweetmeme.com/i/scripts/button.js”> </script> </div>
<? }
add_action(‘thesis_hook_byline_item’,'custom_byline’);
3. Change the Tweetmeme source to the name of your Twitter account.
4. Save the file.
Whoa! You’re done. You can always adjust the location of these two buttons using your CSS skills.
Also read:
- How to Add a Favicon in Thesis Theme?
- How to Add your own Logo in Thesis Theme?
- How to Add Twitter Field in the Comment Section of Thesis Theme?
- Goodbye to New Thesis Affiliate System!
