This is one of the main customizations that I did on my Thesis theme. Custom text under the headline, also called byline. It’s rather simple, really. But having the ReTweet button in byline instead in the post, makes the blog post look cleaner, in my opinion. And the best part is, you dont’ even have to have the Tweetmeme plugin installed.
Create Custom Byline with Tweetmeme Button
All you need to do, is insert the code below into your custom_functions.php file.
function custom_byline() {
?>
<div style="float:right; margin-top:-17px;margin-right:-27px;">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink() ?>';
tweetmeme_style = 'compact';
tweetmeme_source = 'markotu';
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');
You will have to adjust margins to fit your blog, just change the numbers in margin-top:-17px;margin-right:-27px; until it looks good.
Second thing you’ll want to change is tweetmeme_source = 'markotu';. Obviously you want to put your Twitter user name in there instead of mine.
And last you can change the URL shortening service to your preference in this line tweetmeme_service = 'bit.ly';, if you don’t like bit.ly. A list of services available and more information is here.
This is it. I’ll post more Thesis customization tips and tricks in the future, hope you liked this one.
If you enjoyed this article, you might also like:
