I have already mentioned about twitter share count button for wordpress and in this article we will learn to add twitter button in thesis theme.

thesis-theme-twitter-button

Get Thesis Theme Now

As we know that Thesis Theme is capable of content management and efficient SEO. Though it is a raw wordpress theme but it allows endless customization for your blog. If you don’t have a copy of Thesis Theme then you can download thesis theme here.  If you are using an old version of Thesis Theme then I recommend you to safely upgrade thesis theme.

Add Twitter button in Single post

As we are know that Thesis customization is done using thesis hooks which are overriding functions. To show twitter button in single post, copy-paste the code snippet in the custom_functions.php.

Make sure you take full backup of custom_functions.php file using FTP before modifying it.


function joe_adds_twitter_btn ()  {
if (is_single()) { ?>
<div style="float:right; margin:0 10px;"><script type="text/javascript">tweetmeme_source = 'thecreatology';</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div>

<?php
}
}
add_action('thesis_hook_before_headline','joe_adds_twitter_btn');

Note: Change the ‘twittermeme_source’ which will be your twitter username, in above code.

Save the custom_functions.php file, once you are done adding the above code. Now upload the edited file on server using ftp client and when you will refresh website, you will find something like in screenshot below.

add-twitter-button-in-single-post-thesis-theme

Twitter Share button in Single Post

As we have added twitter button in thesis theme, we come to the end of this article. If you have any queries then you can post comment below as your feedback.