Last weekend, I have created an account on Twitter.
Twitter is a free social networking and micro-blogging service that allows users to send „updates“ (or „tweets“; text-based posts, up to 140 characters long) to their Twitter profile pages, via short message service, instant messaging, or Facebook.
But why should I send my „tweets“ only to my profile page at twitter.com? Wouldn’t it be nice to integrate the tweets into the starting page of my weblog? In my opinion, this would be quite handy. So, let’s start adding Twitter updates to Arun’s The Morning After theme.
Plug-in Twitter Tools
Dowload, upload and activate Alex King’s Twitter Tools 1.1b1 plug-in. (Requires WordPress 2.3)
Go to the Twitter Tools Options page (Dashboard > Options > Twitter Tools) to set your Twitter account information and preferences.
After inserting the Twitter username and the Twitter password, the settings have to be adjusted.
For avoiding a blaoted WP database, I denied to create a tweet when I post on my blog or to create a blog post of my Twitter update. I also do not want to post a daily digest of my tweets on my weblog.
Because of these settings, the „title for digest posts“, the „category for tweet posts“ and the „author of tweet posts“ are irrelevant.
The next option defines the number of tweets that are shown by using the aktt_sidebar_tweets function. I have set it to 3.
Due to a better appearance, opt out the ability to create tweets from your weblog.
Edit Twitter Tools
- For editing the Twitter Tools plug-in, you have to go to the WordPress plug-in page (Dashboard > Plug-ins) and deactivate Twitter Tools again. Then, open the plug-in editor.
- Search for the aktt_sidebar_tweets function
- Look for the first < ul > tag in this function and change it to < ul class=“arrow“ > (without the spaces, of course.)
- Save your changes and activate the plug-in again.
Open the home.php in your WordPress theme editor (Dashboard > Presentation > Theme Editor > home.php). Scroll down to the comment „end asides“ and insert the following code below it:
<div class="home_asides"> <h3 class="mast">Twitter</h3> < ?php aktt_sidebar_tweets(); ?></div> <pre lang="php"> <!-- end twitter --> </pre>
Click on update file & DONE!