Adding Twitter Links To Your Posts

January 9, 2010 by Jeffrey  
Filed under Hi-Tech Blogging Solutions

It seems that Twitter is all the rage these days, really pretty cool when you think about it. I personally think tweets should be more than 140 charters, but what do I know ? I don’t have a Twitter Account for this website yet, but I do have one for Bloggers Market.com. I have a link at the top of the homepage, but for the coming year I think I am going to provide a link to my account in my posts. Without further ado, here’s how:

Pull up your CSS and paste this code into the “Content” area at the bottom (it will be easier to find if you need to edit in the future):

.follow-me {

background: url(http://www.your-web-site-name-goes-here.com/images/twitter.png) no-repeat left center;

padding: 2px 0px 2px 20px;

}

You’ll now need to upload a “twitter image” to your images or media library on your server. Be sure to watch the size of your image. Or better yet grab this image below and you can mess around with it later if you want to. Just get up and running now.

Twitter

Next edit your themes index.php file; look for the content call:

<?php the_content(__(’Read more’, ’studiopress’));?><div></div>

Immediately after, place this code:

<a href=”http://twitter.com/username”>Follow Me on Twitter</a>

Remember to change the word “username” above with the username of your Twitter Account and that should do it.

One note of caution. If you do not have an “index.php” file edit your “single.php” file instead. You will have the same result. See ya next week !

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a
gravatar!