Put a twitter feed on your site

What’s a twitter feed?

A twitter feed is simply a list of recent tweets published to twitter. You can narrow them down to show only tweets about a particular topic, or you can set the feed so that it shows  only your own tweets.

Why might you want one on your site?

Twitter is a good way of sharing relevant links and information, and hence a way of providing visitors with useful information and news.

Publishing tweets on your site allows you to highlight your recent tweets and encourage people to subscribe to your feed.

Outbound links may attract the attention of other site owners and encourage them to link back to your site. This may improve your page rank.

Of course, just publishing a feed won’t do anything for your page rank. It’s more sensible to focus on ensuring that your tweets are relevant, interesting or useful for visitors, as Matt Cutts of Google explains in this brief video.

How?

One of the easiest ways to publish a feed to your site is to use Twitter widgets. But they don’t seem to work in every browser, and they’re a little inflexible when it comes to adjusting colours and other aspects of the feed.

Instead, there are hundreds of free scripts available, and you can simply paste them into your existing pages. One of the best is available at http://www.taranfx.com/live-twitter-ajax-script.

This script is particularly useful because it includes nearly all the javascript and styling you need in one place. That makes it simple to change colours and font styles and you just need to upload one file to your server.

We’ve put up an example of the script in action here. It searches Twitter for the term ‘Danube’, displays the most recent tweets, and refreshes the display every 10 seconds.

You can adjust the appearance in many ways by changing the parameters in the code. For example you can change the colours used, the fonts, the refresh frequency, and the number of tweets used.

Things to watch out for

The hiccup you’re most likely to come across with this script concerns CSS styling. The script includes common styles such as lists, which may conflict with your existing style sheet. So to start with, the feed may not have the appearance you want.

One solution to this is to put your feed in a div with a distinctive name, and change the appearance of lists only when they appear in that div.

To do that, you preface the <ul> or <li> in your CSS with a hashtag and the div name. For example:

#twitterfeed li
{
display:none;
list-style:none;
background:#ffcc33;
margin:0 15px;
overflow:auto;
padding:10px;
color:#cc0033;
font-family:Arial, Verdana, Sans-Serif;
line-height:20px;
}

To create the div, you would then place the opening and closing tags around the code for the feed:

<div id=”twitterfeed”>

All the code for your twitter feed goes here

</div>

In this way, any lists you already have on your site will continue to display correctly, and the list style you apply to your twitter feed will not interfere.

Make a friendly and helpful custom 404 page

What’s a custom 404 page?

In a perfect world, nobody types URLs incorrectly.

Your internal links work perfectly, inbound links don’t get broken when you alter the site structure, and money grows on trees.

In the real world, visitors occasionally end up on pages that don’t exist and are given the “404 File Not Found” error message. This tip shows how to customise the 404 page to really help your site and your visitors. Continue Reading »

Make your “how to find us” map more distinctive with fresh colours and markers

What is a styled location map?

This is where we stretch the definition of 5 minutes a little. When you’re familiar with the mapping app we’re going to use, it will take 5 minutes to design and publish a map. The first and second times will probably take longer.

Many organisations publish a standard Google location map alongside their contact details.

Google maps allow styling, but here we’re going to use the styling tool on Cloudmade because it’s marginally easier to edit and embed a basic map on your site. Continue Reading »

Make a swipe file or grab-bag of content examples

Swipe file as filing cabinetsWhat’s a swipe file?

Designers, developers and copywriters often keep a swipe file or grab-bag of content that’s impressed them and is likely to be useful in future.

It might be an entire website, a code snippet, an article, or just a particularly striking headline. Continue Reading »

Focus your website with a list of the top three visitor tasks

What are visitor tasks?

A list of the three most important tasks visitors want to achieve on your website will focus your content and help make your site more usable. Continue Reading »

Improve poorly performing pages on your site with an A/B test

What?

Let’s be honest. As website managers, we all have pieces of non-performing content on our sites.

A/B testing is a quick and free way of testing small changes to your content to improve performance. It can be used to increase clickthroughs, subscriptions, sales, or any other action you’d like visitors to perform. Continue Reading »

Add some punch to your web prose by weeding out adjectives

Why?

Online or off, readers cling to the concrete. They like concrete nouns and verbs, but adjectives send them to sleep.

Adjectives reduce the impact of nouns and verbs because they weaken facts, force people to think, and can make the reader wonder what you’re trying to hide. Continue Reading »

Minify your CSS to speed up your website

Why?

Web users are incredibly impatient nowadays, and they abandon slow-loading sites in a matter of seconds. To put it bluntly, when there’s a billion enticing sites just a click away, slow pages are irritating and boring. Continue Reading »