build a niche store

May 9th, 2008

The Simplest, Most Effective SEO Move You Can Make! - No Comments

It’s Time to Put Dynamic Titles on Your Site



In practice, however, actually taking the time to modify every page’s titles would be a heck of a lot of work. In cases like this, dynamic content generation is absolutely the preferred solution.

Fortunately, WordPress enables you to do this with ease, and believe it or not, this is one of those rare instances where a “one size fits all” solution really works!

All you have to do is add the following line of PHP between the <title> tags in your theme’s header.php file.

<?php if (is_single() || is_page() || is_archive())
{ wp_title('',true); } else { bloginfo('description'); } ?>
— <?php bloginfo('name'); } ?>

Grab the code above, or simply copy and paste it from this text file into your header.php file.

The End Result

Once you’ve made the changes to your header.php file, you’ll be in business with a completely dynamic titling structure that is guaranteed to serve you well in Google, Yahoo!, MSN, or the search engine mashup of the moment.

Also, I constructed the PHP so that on the home page of your site, the title will be the name of your site with the associated tagline from your WordPress administration panel. You can enter both of these values under the Options tab, and you’ll need to do that in order to take full advantage of this handy snippet of code.

Write Post in the WordPress administration panelOther than that, the title tags across the rest of your site will be based on the value that you enter into the Title field in the Write Post or Write Page sections of your WordPress administration panel.

At this point, I can see the wheels in your head turning, and for good reason! When your <title> tags are constructed this way, you can exercise precise control over what information searchers will see.

This is powerful stuff.

Now, the only thing separating you from traffic, fame, and fortune is your ability to construct compelling headlines. Luckily, I happen to know a guy who’s more than happy to help you out on that front :)

SEO for EverybodyThis is the third in a series of posts covering SEO “best practices” called SEO for Everybody.

There are lots of simple tweaks that average, everyday users can make to their Web sites that will drastically improve both overall accessibility and search engine performance. The goal of SEO for Everybody is to help guide those users through these basic processes, thus resulting in a more accessible, utopian universe.

Or something like that :)

Related posts

Pages: 1 2