24th Nov, 2007

Fix your default wordpress title cos it sucks!

Wordpress by default displays the blog title followed by post name which is not good for search engines and social bookmarking websites since the title of the post is much more important than the blog name. To add insult to injury wordpress uses the character » as a separator which does not get encoded properly on social bookmarking sites and it looks quite ugly.

To fix it go to the theme editor in the wordpress admin, find the header php file and change the title to the following:
<title><?php if ( is_home() ) { ?><?php
bloginfo(’name’); ?> | <?php bloginfo(’description’);
?><?php } else { wp_title(”); ?> | <?php bloginfo(’name’);
} ?></title>

Have you ever been to Malta? All you need to know is a click away! Malta Travel Guide, Bargain Accommodation in Malta, Malta Hotels

Responses

Alternatively you can use this:

Nice information. I just applied the change to my own theme. Thanks!

Leave a response

Your response:

Categories