Customize Blog Theme Head Section For More Traffic

by on November 17th, 2008

I experimented something, researched a bit and found a little trick. If you are a blogger and using WordPress then surely you have got a theme. I am going to discuss something about head section of your theme and recommending you some customization in the header.php file of your theme. There are a lot of themes available online but they share only necessary elements. To go further you have to customize it a bit for optimal performance. Lets have a look. Did you just open your header.php file in your favorite editor? No? I did not expect that yet. Alright first you will go through the article and pay attention because it can get tricky.

Consider the section between starting title tag and ending at following element:

Normally all themes would have such elements in between this section:

<?php bloginfo('name'); ?><?php wp_title(); ?>

My recommendations are as following:

<?php bloginfo('name'); ?>
<?php if ( is_single() ) { ?> » Blog Archive <?php } ?>
<?php wp_title(); ?> <?php if ( is_home() ) { ?> | <?php bloginfo('description'); } ?>

Ignore javascript and css files link code as this can be different for every website and every theme has this already.

So where is the difference:

<?php bloginfo('name'); ?>
<?php if ( is_single() ) { ?> » Blog Archive <?php } ?>
<?php wp_title(); ?> <?php if ( is_home() ) { ?> | <?php bloginfo('description'); } ?>

Five steps:

  • Look in between title tags. I have added some new elements to customize title a bit.
  • Add wlwmanifest xml element
  • Add rsd xml element
  • Add Feed URL from feedburner, If you use feedburner service
  • Add Google Verification Code (Google webmaster tools)

These customizations are not necessary but can drive traffic dramatically towards your blog.

Google Verification Code and Google Sitemap

  • Go to Google Webmaster Tools
  • Get an account
  • Tell Google About your website and and get Verification key and add it in your head section
  • Tell Google about your sitmape URL

That’s it. Was this tip useful? Do you recommend anything else?