« 11 Make Money at Home Tips for the RecessionWordPress Plugins You Cannot Live Without »

January 26th, 2008 | by RichSage

WordPress Post Title Modification

Category: WORDPRESS

Creating dynamic page titles by modifying the post title name in WordPress

As many of you know, the default installationWordPress Browser Name Edit of WordPress will leave a static page title in IE or FireFox –for that matter, any browser.  For example, for this post, the title could be Rich Sage Make Money Wisdom > WordPress Post Title Modification.

However, the idea page title would be: WordPress Post Title Modifications - Rich Sage Make Money Wisdom.

It’s wonderful that in the WP admin this title can be changed under the “options” tab, but what’s not so handy is that the first part of the tittle will never change in default mode.  The latter part will change to the post name.

There is a simple correction to this issue, by putting the post name first in the php file that controls this information.

Here is how you can modify the Post Title display in WordPress:

Enter the hosting and wp-content folder >>  themes >> your theme folder.

Then look for the “header.php” file and this line of code:

<title><?php bloginfo(’name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

Replace the above code with the below:  Keep in mind that you can insert your own text into the code by putting it between ‘ and ‘ . You can also insert text after the “<” and “>” statements.

<title><?php wp_title(’ ‘); ?><?php if(wp_title(’ ‘, false)) { echo ‘ ‘; } ?> - <?php bloginfo(’name’); ?></title>

Doing this is essential because it now gives the search engines an accurate method to capture the dynamic name of each page that you write.  This will great aide your goals of building traffic.

Success with your own WordPress blog!

Rich Sage

  • Popularity: 3% [?]
You might be interested in those posts as well:

RSS feed | Trackback URI

1 Comment »

collapseicon Comment by Jim Mirkalami
2008-02-06 20:02:13

I have been a frequent visitor of this blog for some time now, so I thought it would be a good idea to leave you with my thanks.

Regards,
Jim Mirkalami

 

Your Comment (smaller size | larger size)

You may use these HTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .