the-deuce.jpg

The Simplest, Most Effective SEO Move You Can Make

There are tons of bullet point items on the proverbial SEO list, but one item in particular stands head and shoulders above the rest in terms of its overall effectiveness.

This key SEO component is so powerful because it serves both search engines and people. Oftentimes, we become so involved in site building details that we lose sight of the ultimate truth here—search engines, without people, are basically useless.

So, how can you give the search engines killer juice and provide something captivating for the end user at the same time?

By constructing dynamic, descriptive <title> tags for each page of your site.

Dynamic? For each page? Sounds complicated.

My friends, this is precisely why you read my site :) It’s easy, and I’m literally giving away the solution for all you WordPress users out there.

How and Why Dynamic Titles Work

Search engine result titles are pulled from your title tags

When Google, Yahoo!, and other engines cull search results, they return a title with a brief description of the linked page, as seen above. These SERPs, as they’re called, are extremely scannable, and the user’s attention is immediately drawn to the titles because they are bold, blue, and clearly distinct from the rest of the page. As you might have guessed, the titles are constructed from the actual <title> tags on the pages of your site.

Ideally, the contents of your <title> tags would not only change with every page, but they would also be indicative of the information contained on that particular page. On top of that, you would certainly want your titles to appeal to humans, because ultimately, if the title they see in the SERPs doesn’t appeal to them, they’re not going to click on it!

It’s Time to Put Dynamic Titles on Your Site

In practice, setting up your site to serve dynamic <title> tags is going to require you to get your hands dirty with some code. However, if you’re looking for the easiest possible solution here (read: no code required!), then all you need to do is grab the Thesis Theme.

Thesis allows you to edit the <title> tag on every page of your site, and better still, it lets you do so independently of the post title. This gives you more SEO power on each page than the method below does, so as far as I’m concerned, this one’s a no-brainer!

However, if you’re hell-bent on modifying your existing, non-Thesis theme, then you’ll need to 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'); } ?> &#8212; <?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!, Bing, 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 and to engage your audience.

Take the Next Step!

  1. Share this on Twitter:
  2. Share this on Facebook:
  3. Submit it to StumbleUpon
  4. Bookmark it on Delicious

263 comments… read them below or add one

David Krug December 17, 2006

Oh crap does this come preinstalled on cutline, or am i just that lazy? that i can’t do this simple step.

Reply

Hans-Peter June 14, 2010

As with the new version you can make these settings within the control panel of thesis.

Reply

Mike December 17, 2006

What line of PHP ?

Did you hide it like some long sought after Christams gift that was hidden and forgotten about ?

Am I overlooking it ?

Is the Loch Ness monster real ?

Reply

Joe December 17, 2006

I’m getting an error when putting the code between the tags:

Parse error: syntax error, unexpected T_STRING

Reply

John June 20, 2010

Me too having the same problem Joe. When revert back, everything is working fine.

After try out Chris’s method of copying the txt file. Everything works fine! Amazing!

Reply

Chris P. December 17, 2006

David — Cutline comes with essentially the same markup structure for <title> tags. The only difference is that each individual page is also “branded” with the name of the site, as it appears after the title.

I’ve had one person suggest that this may cause Google to suspect that you have duplicate content, but I have found no evidence to support that claim.

On top of that, I like branded search results, because if you’re tracking the performance of your site in the SERPs, it’s easy to spot your own results.

Mike — Are you using IE 7? Gimme a break. After you get FireFox, I’ll apologize for having that render improperly on sub-standard browsers. For some reason, my <pre> tags were misbehavin’, so I had to remove em.

Joe — The problem with the code was a character encoding issue. To fix this, I created a text file that you can copy and paste in order to get the desired results. Thanks for alerting me to the issue, and I’m sorry I didn’t do a better job of testing it up front!

Reply

David Krug December 17, 2006

Thanks dudeski. :)

Reply

Mike December 17, 2006

Uh, yes I was using IE7, but I have FF too and didn’t think to check it.

Seems silly to use a browser that can’t beat IE for number of users. If you can’t beat it, bow down to it.

I alternate between the two, to check our sites and make sure they look good in both.

Thanks for the file !

Wait a sec … sub-standard ? IE7 Rules ! Just like Bill Gates ! Bwaaaahhhhhaaaa ! ( That’s evil laughter )

Reply

Gregory Pittman December 17, 2006

Chris, If we’re using the Optimal Title plugin, does this line of code provide any additional benefit over the plugin? Obviously we wouldn’t need to use both simultaneously.

One benefit I see is that your method doesn’t require a plugin, which may appeal to thsoe who have concerns about running too many. I don’t think I’m running too many, but I don’t want to run one if I don’t have to.

Reply

Mike December 17, 2006

Ooooh, good thinking Gregory. I use that on several blogs and had forgotten about it.

What about it O’ Mighty Brain ?

Reply

Chris P. December 17, 2006

Gregory,

I didn’t know about the plugin’s existence prior to writing this post, and to be honest, it never occurred to me that there might be one.

I dunno, but it seems to me that one line of PHP is too simple for an entire plugin.

Aside from all that, there really is no difference from the plugin, except that your titles will be “branded” if you implement the plugin the way the author suggests it.

And as I said earlier, I don’t think that’s such a bad thing.

Reply

Gregory Pittman December 17, 2006

Okay, that helps sort things out. I have tweaked the tag you posted above to include the blog brand, and have disabled the plugin. One less I have to worry about. Thanks, Chris!

Reply

shawn blanc December 18, 2006

Chris – Your SEO for everybody series is excellent. Thanks so much for putting it together. Even though I already use the dynamic title plugin, it feels good to read again how helpful it is.

Reply

Robert December 18, 2006

I wish Matt Yglesias would do that on his site.

Aside fro S.E.O., the technique is also helpful for people who have many browsers or browser tabs open at once. The tag contents also appear as the title of a borwser window, of course. And I believe it also helps those using assistive technology, such as screen readers.

Reply

adam December 18, 2006

personally, i hate the way wordpress handles titles, in that it uses that stupid right angle quote character that was cool 2 years ago.

i much prefer hacking the title by hand, so that you get proper titles that don’t have unencoded characters show up in SERP’s.

fauna has a good example of this
see line 7

Reply

Chris P. December 18, 2006

Adam,

This code is a complete aberration from the way WordPress handles titles by default.

Also, by using the code provided here, you get automatic character encoding because the title passes through the WordPress “scrubber” before being placed into the XHTML.

My code literally takes care of every grievance you just mentioned.

Reply

Martial Development December 19, 2006

It seems great minds think alike :) This was one of the first changes I made from Cutline to Ninja Scroll.

Reply

Chris P. December 19, 2006

Martial Development,

Cutline already comes equipped with a killer <title> structure.

What on earth are you talking about?

Reply

Martial Development December 20, 2006

Cutline 1.03 does not include the blog description in the front page title. Correct?

Reply

Chris P. December 20, 2006

No, the blog description isn’t on the main page. It helps if you specify that, of course, and as far as SERPs go, your home page is small potatoes.

So far this month, my home page has “landed” 0.4% of all of my inbound searches.

If you’re looking to make rapid site improvements, then focusing on having your internal pages rank for their respective topics is the way to go.

I certainly recommend using the description in your home page titles, though, simply because over time, that may be a decisive factor in ranking for a hugely competitive term. To illustrate, I’d point you towards Copyblogger and the term “copywriting.”

Reply

Edwin December 20, 2006

Call me crazy, but some time ago i had pages in the supplemental index and when i changed my title structure to the one you have, i got out. It might have been coincidents, who knows.

Reply

David Bradley Science Writer December 21, 2006

Excellent mod! I was using a hybrid dynamic titling approach before because I never thought to use a conditional clause. Now the blog homepage has a descriptive title and all posts have their own proper standalone titles linked to the post slog keywords!

Thanks

db

Reply

Emil January 1, 2007

Chris,

Have you ever considered making a BBPress theme for Cutline users? There are not a lot of themes for BBPress and I think if done it would be widly used once BBPress 1.0 is released on Jan 15 and BBPress spreads like WordPress.

Anyways think about it, it probably wouldn’t be to hard and is a good investment of time.

Thanks,
Emil

Reply

Dean January 3, 2007

These are the kind of tips I like. All done in less than 2 minutes. Thanks for sharing these :-)

Reply

organizeher January 5, 2007

Not being smart, I didn’t research my URL before I began my site. I have spent 3 months trying to get Google to index organizeher.com b/c apparently the previous owner was a Google Adsense spammer and was dropped from the index.

When I implemented Cutline and cleaned everything else, I made a request to Google, re-submitted and voila! We are live.

I give credit to Cutline’s smart/savvyness in my sidebar – thanks for such a great theme! I’m using it EVERYWHERE!

Yeeee-haaaa!

Reply

Chris P. January 5, 2007

OrganizeHer,

I think I need to start one of those infomercials about SEO success stories.

I’ve learned a lot about the topic since I launched the Cutline theme, and to be honest, it’s been a stroke of good fortune to see people’s sites perform so well with my theme.

Honestly, I think the bottom line is that semantic markup and a few simple SEO principles really go a long way. The truth is, so few people do things the “right” way, so those who do see pretty significant benefits.

Best of luck with OrganizeHer; your design is the killerest.

Reply

Matt January 11, 2007

I am not follow you on this one. Will it affect my current rankings negatively? I made the change and I am wondering what type or results it will have. Sorry if it is a thick-skulled question!

Matt

Reply

Chris P. January 12, 2007

Matt,

Things may get thrown out of balance temporarily, but overall, this can do nothing but help your rankings. In fact, it will definitely affect your rankings positively, but the real benefit will come in the form of clicks in the SERPs.

After all, you click on attractive headlines that are related to what you’re searching for, right?

Reply

Chris P. January 18, 2007

Organizeher,

Pretty astute observation there on tags vs. categories. Although my post would likely only echo my opinion on the matter, I absolutely believe that people have royally screwed up the way these things are used.

Problem is, it’s not really their fault! They weren’t presented with alternatives up front, and I learned quite a bit about Web architecture before I realized how potentially limiting it can be to “tag” with categories.

I’m running out of simple SEO tips, so maybe I’ll go that route in my next entry.

Reply

organizeher January 17, 2007

Chris, thank you kindly for the design compliments. I tried to keep it simple, but … well, female. :)

Matt, the theme itself won’t effect your current ranking negatively. As Chris said, you may notice a shift change when you get crawled again, but if anything you’ll be bolstered a bit as long as your content and additional code is clean.

Make sure to download and put into play the XHTML Sitemap.

There are tons of SEO elements that Chris has touched on. Another favorite of mine would be Aaron Wall over at SEO Book.

Chris, I’d love for you to do an entry on your take on the usefulness/purpose behind tags -v- categories. Misuse. Use. Whatever. I caught a snippet of that in another comment you made to someone and it jives with me about how people are organizing their blog content.

Reply

mark January 17, 2007

Chris, it’s a good write-up. But, I prefer some different code than you do.

Your check for is_single(), is_page(), is_archive() is almost pointless, because that’s got to be 99% of all pages in WordPress. In addition, most peoples blog name is not something that helps in SERPs.

I think you would be better served to do a check for is_home() and if so then give a keyword loaded title and if not home then use title();

That’s what I use for my blog Search-This and it works great. I have included the code here for your viewers: http://www.search-this.com/title.txt

Reply

Rodney Ash November 5, 2010

Good right up as Mark mentions. I’ve used code similar to this on one of my sites and I can vouch that is works great as well.

Reply

organizeher January 17, 2007

I’ll check back then. :)

Reply

Phil Van Treuren January 21, 2007

Hey Chris, can you suggest how to do this for Typepad users who implement Advanced Templates? I would love to be able to do this for my Typepad blog.

Love your blog, bookmarked it

Reply

Chris P. January 21, 2007

Phil,

It’s been a while since I’ve used MovableType or TypePad, but I think the data structures are the same for both. If that’s true, then try placing the following between the <title> tags in your Individual Archive Template:

<$MTEntryTitle$>

This will dynamically place the title of your entry in the title field on each and every post page.

Reply

Phil Van Treuren January 21, 2007

Hey Chris! It took me a while of trial and error, but I figured out how to set up dynamic page titles for TypePad blogs. I posted on it and I hope you’ll check it out and let your readers know how to do it. Thanks for the inspiration!

Reply

Rob O. January 27, 2007

Ooops, I got mixed up and posted this question elsewhere…

I’m using Blogger and it generates each page off of a base template so every blog post page bears the same title. Any suggestions about getting around this? There are other pages within my site, of course, and I do use unique and meaningful titles on those.

Reply

Rod February 2, 2007

Hi I added the tag to the header like you so nicely wrote. Now I have in the browser bar the name of the site 2x.. or if I am in a page the name of the page 2x… have I misread your instructions?..

Thanks Rod :-)

Reply

Rod February 3, 2007

I figured it out… I’m learning PHP so I do misunderstand sometimes.

Reply

Roland February 8, 2007

A bit old seo trick, but without any doubt super super efective :)
Good article.

Reply

Marty Weintraub February 15, 2007

I would like to discuss hiring you to develop some blogs for corporate clients. Rand Fishkin recomended you. Please call.

Marty Weintraub
218-310-2244

Reply

Brenda February 17, 2007

Thank you, Chris, for creating such a great theme. I feel very lucky to have chosen Cutline. It was simply the best looking theme available. I had no idea how important all your work was behind the visual design. All of your SEO tips have worked for me. I began my site in November and it finds it’s way into the first 10 to 20 google listings with the most general of search strings in a very crowded market. Your intelligence and generosity are remarkable.
Thank you!

Reply

Fran6 February 21, 2007

Hi Chris,

Do you think that tip is still useful pour k2 themes ? I mean, I have already a lot of people coming from the search engines and the title given by k2 is “titleofthepost at yourblognama”. I think it is relevant. But, for the homepage, it just gives the blog name… So, should I only change the title for the homepage ? And I am also afraid to be sandboxed Google or to have a lower PR… What do you think ?
Thanks again !!

Reply

Fran6 February 21, 2007

Hi it’s me again. I am really surprised that nobody talked about http://www.netconcepts.com/seo-title-tag-plugin/
That is a perfect plugin for title management no ? adn easier for beginners… What do you think Chris ?

Reply

Chris P. February 22, 2007

Fran — Absolutely not. The plugin to which you referred requires users to edit the header.php file, just like my suggestion from the post.

Then, the plugin requires an additional degree of difficulty in the use of custom fields within the WordPress posting area.

My method, however, will optimize every page of your site immediately upon implementation. No custom fields, no extra garbage — just instant results.

Reply

Fran6 February 22, 2007

Hi Chris, thanks for your reply ! And what do you think about the consequences with Google in the short term ? I am afraid to change my titles and to lose Pagerank or having trouble with Google in the first weeks… Your opinion ?

Reply

Chris P. February 22, 2007

Fran — Changing your post titles to a better structure is something that should be done immediately. The next time Google indexes your site, you will probably see positive results in the SERPs.

Reply

Rian March 2, 2007

Chris,
Not sure if you’ve heard of this SEO technique or not, and I havent verified that it works. I did learn from a guy who builds sites with XSitePro that he renames his CSS sheets to a primary keyword for the site. He claims he gets organic listings without getting lots of backlinks. Do you think this really works or have you ever heard of this technique?

Reply

Chris P. March 2, 2007

Rian — Bologna? Aisle 6.

There’s no way this has anything to do with rankings.

Backlinks, content, and a well-constructed site are the three “magic bullets” of SEO, and anyone who tries to sell you on an “amazing technique” that doesn’t involve any of the three is almost certainly full of it.

Reply

Babak April 12, 2007

Chris, I’m not sure I understand how SEO Title Tag plugin is inferior to this. I’m using it and it gives me tremendous flexiblity. I can customize my title tags on the fly as well as specific URLs, do it in batches, re-title my categories, pages, etc… all customizable.
So please fill this n00b in on why your suggestion/plugin is superior. Thanks

Reply

Chris P. April 12, 2007

Babak — The SEO Title Tag plugin requires you to edit individual posts and pages to change the <title> tags. If you’re comfortable with that, then the plugin actually provides you with more flexibility than the method I’ve described here.

However, for 99.9% of folks, simply implementing an optimized version of title tags ought to help by leaps and bounds in the search engines.

Again, though, if you’re comfortable with the plugin, then by all means, use it!

Reply

David April 12, 2007

This was AWESOME and so easy to implement. I tried using the All-in-One SEO pack for WP that does the same thing (and more), but it broke the search function. This hit the spot and didn’t even require a plugin (or more than 1 min of work).

Thanks so much!
David
http://www.techdeals.net/

Reply

Wauks April 12, 2007

This was definitely a good read. Thanks for the tips man!

Reply

Andrew April 13, 2007

Found this post thru Problogger and am so glad I did. A very handy bit of code that was so easy to use and I am sure which will serve me well. Thanks!!

Andrew

Reply

Brenda April 14, 2007

I’ve upgraded to Cutline 1.1 and after much trial and error put the code into the Header.php
However, all looks good in the site, but the title isn’t showing in the browser bar. I’m not sure what I’ve done. Any idea how I can fix this?

Reply

Brenda April 14, 2007

One more thing…
The description on the front page has the blog title in it and I can’t seem to get it out.
Any suggestions?

Reply

Brenda April 15, 2007

All fixed. I now have the code in between the title tags (they had some how gotten deleted) and I tweeked the code and put it the masthead H3. I’m getting everything where I need it.

Reply

James Galway April 16, 2007

I cant stress more how important Title tag is..
I changed this for one site that had about 2k pages.. All with same title..

Now using Dynamic titles..

And sales have rocketed!!

Great Post!

Reply

tech April 16, 2007

These are the kind of tips I like. All done in less than 2 minutes. Thanks for sharing these :)

regards…

Reply

The Morningwood News April 20, 2007

2 thumbs up dude. And I’d give you more if I had more thumbs. Your entire site is great. Lots of good content and lots of good ideas.

Reply

PSP May 3, 2007

I have often dominated page 1 of the search engine results even when I’m in the middle or near the bottom of the page because my Title is much more descriptive and compelling than the other entries.

This is a must implement tip.

Thanks….

Reply

Steve Renner May 6, 2007

Hi Chris,
Thank you for the Cooool Tip. Can’t wait to try this on my site.

All The Best!

Steve

Reply

Bruce May 10, 2007

Thank you for the insights on this. I just began using Cutline about 3 or 4 days ago, so posts I’ve done since then are no doubt in good shape. But, should I go back and edit all previous posts, resaving them so that this takes effect for all of my posts?

By the way, looking forward to your release of a tweaked “old copyblogger” theme!

Reply

Chris P. May 10, 2007

Bruce — Your old posts will automatically adapt to the proper titling scheme that is defined in Cutline, so you don’t have to do anything!

Reply

Bruce May 10, 2007

Thank you very much, Chris!

Reply

Steve Renner May 10, 2007

Chris,
Will this interfere with Permalinks. Or is this “In Place Of” Permalinks?

Reply

Chris P. May 11, 2007

Steve — This actually has nothing to do with permalinks, and it should be one of those things that’s simply plug-n-play. All results, no hassles :)

Reply

Steve Renner May 12, 2007

Hi Chris,
Thanks for your quick response. Say, I want to implement this on my site but there is already some code in between the tags. Should I just replace it?

Also, I keep hearing about Cutline, is this your own theme, and how do I get one?

Finally, I’m wondering if my site would pass the semantic (and Google-recommended) XHTML markup. I kind of doubt it.

Would you mind taking a look and give me your suggestions?

Thanks!
Steve
http://www.steverenner.com

Reply

Computer Troubleshooting May 18, 2007

I tried to use this code in this website for more than two weeks now but I can’t see any changes yet, increase in traffic and serps ranking.

Reply

Thale May 22, 2007

Excellent tips! I think your solution is as efficient as SEO titletags for Wordpress. I’ll test it soon on my website

Reply

Fred May 25, 2007

how about blogger chris? do you have anything to heal the same problem for blogger publishers?

many thanx … cheers …

Reply

Chris P. May 27, 2007

Fred — Unfortunately, I don’t have any experience with Blogger or Blogger templates, so I don’t know enough to advise you on that. I bet this issue has been addressed by the Blogger community, though, so try searching for it.

Reply

Amanda May 30, 2007

Hi Chris i am new to your site and have enjoyed surfing The site is full of brilliant information and great comments left by the users

Thanks
Amanda

Reply

Roshan May 31, 2007

Chris, that was indeed a very informative tip and powerful at that. In fact i’ve seen this implemented in many blogs.

One question I had though is – I want the tile to tbe some thing like – ” title of my post | My blog Name”. Is it possible to do something like this?

Reply

Chris P. May 31, 2007

Roshan — To achieve that structure, simply copy and paste the code from this example between the <title> tags in your header.php file.

Reply

Roshan June 5, 2007

Thanks, Chris, for the help. I’ll include that in the template as you said. Better yet, I’m thinking of switching over to the Cutline / CopyBlogger theme, which has this inbuilt, if i’m not wrong

Reply

Spiritual Enlightenment June 26, 2007

Great suggestions.

the WP dashboard has an option to make “Pretty Permalinks” on the click of a button

http://codex.wordpress.org/Using_Permalinks

Is there any advantage in using your PHP line?

Reply

Spiritual Enlightenment June 26, 2007

Where in the header code sequence does the PHP line go?

Reply

Spiritual Enlightenment June 26, 2007

I found this PHP line was already between the TITLE tags? Is it better or worse?

» Blog Archive

Reply

Spiritual Enlightenment June 26, 2007

The PHP line is not appearing in the comments. how to display it so we can compare the two versions of the PHP code?

Reply

rockstarist July 9, 2007

thx, I found something similar on wordpress called seo tools, but zi like this better, simpler and only 1 line.

thx!

Reply

Steve Renner July 10, 2007

This has been an amazing thread. Still getting posts after 7 months. Just shows the power of the Internet and good information!

Way to go Chris!

Reply

Greg Fisher July 16, 2007

Chris,

I downloaded and installed the new Copyblogger Theme. This morning I changed the permalinks to a custom configuration as recommended in 7 Essential Wordpress Hacks and then made the dynamic title tag fix.

I noticed when I did the permalink hack; the .htaccess file was already there. Later, when I went to put the snipped of code between the tags in the header.php, I saw that there was code there already. At first I thought you had already done this — but the codes don’t match. Should I replace the original code with the one from this blog or is it a new-faster-better model?

Reply

Chris P. July 16, 2007

Greg — Leave the code as it is. The new version is, in my opinion, a little better :)

Reply

Greg Fisher July 16, 2007

Thank you Chris.

I appreciated the speedy reply and the wonderful, user-friendly theme. I’m having fun optimizing it per your blogs.

–Greg

Reply

Steve Renner July 19, 2007

Hi Chris, I am going to try this oou on a new blog I set up for Cash Cards International, my online payment service site..

I’ll let you kno how it goes.

Thanks!

Steve

Reply

The Daniel Richard August 18, 2007

I’m using this in my blog now. :)

Thanks again!

Reply

Lee August 21, 2007

Hi Chris

Thanks so much for the code (and the theme!).

One question: When I use the code, my blog name comes first, then the title post. Is there a simple way to reverse this?

Thanks again!

Lee

Reply

Chris P. August 22, 2007

Lee — The code in my text file really needs to be updated, as your desired solution is one that I not only use, but also think is more effective in terms of SEO.

Anyway, locate the else statement in the code for the title tag, and replace everything that follows with:

  1. else { bloginfo('name'); echo(' — '); bloginfo('description'); }

Reply

Lee August 22, 2007

Hi again Chris

Thanks for the quick response.

Unfortunately that doesn’t seem to do what I was looking for. Like on your site, I’ve been trying to get the post title followed by my blog name on individual posts.

Currently individual posts just contian the post title. That’s fine, but I would like to add the blog name too. I have managed it by putting it here: wp_title(‘my blog name’,true)

But then it always come first, whereas I would like it after the post title.

Any ideas?

Sorry for bothering you again and the long-winded question…

Reply

Yuri August 25, 2007

Well, fixing titles is indeed the most effective thing to do about a blog, given WP title initial structure. But the simplest thing you can do is to redirect your site/blog to from either of www or non-www versions to another, thus helping the search engines sort out the links and get you more traffic.

Reply

Gavin September 7, 2007

These are some pretty solid tips and are often forgotten when building websites.

Thankyou for the tips

Reply

Ederic October 10, 2007

My bbPress has just been integrated into the site’s Cutline theme:

http://www.upalumni.net/forums/

Reply

ryo October 14, 2007

Did anybody use this and get more results? Is there any better ways to get more traffic? Thanks.

Reply

Model Planes October 14, 2007

I used the code in one of my wordpress website (sacada2.net) and almost all of my pages is now indexed in Google, Yahoo and Msn. You can check the site for proof. I have a previous post here when I post the code.

Thanks Chris.

Reply

Meteko October 20, 2007

Thanks, Model Planes

I was getting some doubts about it and when i saw your site, the air is clear. I will try to use the code on my new blog.

Thanks Chris

Reply

Sergej October 22, 2007

Or you use the wpSEO-Plugin (wpseo.org) :)

Reply

Tercüme bürosu October 30, 2007

A bit old seo trick, but without any doubt super super efective
Good article

Reply

Rick November 19, 2007

awesome advice. title tags are the new meta tags!

Reply

Eze November 20, 2007

Chris,

Is NeoClassical using this by default? or do you recommend replacing the current content of the tags with the code above?

Reply

Chris P. November 20, 2007

Eze — Neoclassical already has this feature baked right in, so you won’t have to make any changes.

Reply

trademark registration November 26, 2007

Very nice SEO tip; changing all the title tags to my own website has definitely resulted in better Google and Yahoo search rankings. And to think that it’s so simple…

Reply

Jennifer Mark November 29, 2007

Please provide tips for SEO Friendly post for Blogspot.com

Reply

David Bradley November 29, 2007

Nice tip. I’ve actually had something similar on my site for a while now but reckon for individual pages you might get more SEO mileage from not including the blog name in the title, just the keyword-rich post title.

db

Reply

Chris P. November 29, 2007

David — Regarding individual pages, I like to include the name of the site for three reasons:

  1. On sites where the title is not ridiculously long, I have not seen a drop in search referrals from either including or omitting the name in the <title>.
  2. Personally, I am a fan of the branding aspect of it. If you know about and enjoy Pearsonified, and you see a search result appended with “Pearsonified,” then you’re more likely to click on that link rather than one you don’t trust or know anything about.
  3. Finally, I have found that it is much easier to scan search results and spot your own links if you have included your site name in the <title>. This is especially useful when I’m checking stats and want to see where I rank for certain things.

Reply

David Bradley November 29, 2007

I took another look at the site to which I referred as soon as I posted that comment, and I reckon your thoughts in the follow-up comment mesh with the conclusion I came to as I scanned the SERPs for that site ;-) I’ve switched to your php code on that site now!

Many thanks

db

Reply

Colin December 15, 2007

Chris, I’d like to add the code to my header.php but when I look at the exisiting code I’m a bit confused.

I would imagine I’m replacing the existing line that currently shows:

<?php
$title = ”;

if (is_single() ) $title = get_option(‘mandigo_title_scheme_single’);
elseif (is_page() ) $title = get_option(‘mandigo_title_scheme_page’);
elseif (is_archive()) {
if (is_day() || is_month() || is_year()) $title = get_option(‘mandigo_title_scheme_date’);
else $title = get_option(‘mandigo_title_scheme_category’);
}
elseif (is_search() ) $title = get_option(‘mandigo_title_scheme_search’);
else $title = get_option(‘mandigo_title_scheme_index’);

$title = str_replace(‘%blogname%’,get_bloginfo(‘name’) ,$title);
$title = str_replace(‘%tagline%’ ,get_bloginfo(‘description’),$title);
$title = str_replace(‘%post%’ ,get_the_title() ,$title);
$title = str_replace(‘%search%’ ,$s ,$title);

if (single_cat_title(”,false)) $title = str_replace(‘%category%’,single_cat_title(”,false) ,$title);
else $title = preg_replace(“/]+>/”,”",str_replace(‘%category%’,get_the_category_list(‘, ‘),$title));

if (is_day() ) $title = str_replace(‘%date%’,get_the_time(__(‘l, F jS, Y’,'mandigo’)),$title);
elseif (is_month()) $title = str_replace(‘%date%’,get_the_time(__(‘F, Y’,'mandigo’)) ,$title);
elseif (is_year() ) $title = str_replace(‘%date%’,get_the_time(‘Y’) ,$title);

echo $title;
?>

But… I’m not sure if I just replace the relevant line or the lot?

Sory to be so thick but any advice would be gratefully received.

Thanks

Reply

Chris P. December 15, 2007

Colin — For best results, remove everything between your <title> tags and replace it with the code from this post.

And yes, you can nuke all that other stuff :D

Reply

John December 18, 2007

Very good idea with dynamicly generated titles. Interesting – is there any way to make something similar to this with usual website ?

Reply

Ross December 19, 2007

Dude, you are like the “pimp my ride” of blogs. The least I can do is provide some kind of service in return…

Let me know if you need anyone killed.

Reply

Chris P. December 19, 2007

Ross — I don’t need anyone killed. Tortured, maybe, or even perhaps bitch-slapped… Do you provide those services?

Reply

Mike December 19, 2007

If he can’t help you with that CP, gimme a call.

I gots friends in low places ;-)

Reply

Ross December 19, 2007

You can try my site for some DIY bitch slapping… http://www.urbanbeatdown.com

Or, you know, just ask me. I have a ring I wear especially for things like that.

Reply

Chris P. December 19, 2007

Mike — I won’t bother you with piddling details… I’ll save your cronies for the big jobs ;)

Ross — Dude, I checked out your site yesterday, and I seriously love it. You and Josh both have a pretty smooth presence on camera, and I think the idea and execution are money.

The only issues I ran into, though, were consistently slow loading times for the site… This was something I had to address with Tubetorial (before I sold it), and if you ever need help on that front, give me a shout. I should add that most of the solutions involve spending a bit more cash, but I think your site has legs and will prove to be well worth it.

Reply

Ross December 19, 2007

Thanks, Yo!

Josh and I just launched a month ago and the responses have been pretty damn positive on the whole.

As far as the slow loading times… yeah, the sites I build are more like mr. potato head than iron man. I would love some advice.

Reply

Ross December 19, 2007

Here’s a snapshot of my site…

Reply

Roy December 26, 2007

Hi all,

I’m really trying to get my site ready for its first Google Ranking (whenever that may be?) and have done my level best to concentrate on SEO as ads have crippled me for years.

I’ve utilized many bits from 3 old websites and have built this in a hurry but due to the different code I’ve used over the years it’s all a bit…well…bitty.

I’ve heard that if the code is clean in the eyes of W3C it can provide as a powerful backlink.

I’ve cleaned up and validated my CSS but am having trouble rectifying my XHTML code and can’t figure out what to do with the errors it gives.

Can anyone please shed any light if this is true aboutW3C giving backlinks if you put their source code on your site and secondly, are there any experts here who could help me with what I need to do to rectify the XHTML code errors?

Thanks

Reply

VagabondoDigitale December 27, 2007

Very great tips. THX !

Reply

Real EstatePhilippines December 28, 2007

This is the most popular post on the internet. It’s been a year now and it’s still alive.

Reply

Cuban Cigars Dave January 1, 2008

G’day Chris !

We launched our site around 8 months ago with our designer using Cubecart for our site. Is it an easy process for a novice to change to dynamic titles through the admin panel ?

Happy New Year

Thanks
Dave

Reply

Chris P. January 1, 2008

Dave — I have never worked with Cubecart before (in fact, I’ve never even heard of it), so I can’t speak to the process of implementing dynamic titles. It may be simple; it may be a real pain; or it may not even be possible!

Reply

Anthea January 2, 2008

What a neat solution – thanks for posting this helpful article!

Reply

Web Site Çeviri January 13, 2008

If he can’t help you with that CP, gimme a call..

Reply

David G. Johnson January 15, 2008

Chris — great stuff. And great designs too! Holy cow!

One thing, though: the code that’s actually contained in this post (not in the text file) has a stray } in it.

Wanna know how I know?

Reply

Roy January 22, 2008

I have a question which I’m struggling with.

When you install scripts like site counters etc, what is the best method of getting all the script into one format?

I’ve noticed that most aren’t XHTML compliant and pages will no longer conform to W3C standards as the sites will become a smorgasboard of code.

I know there are sites that identify what script is not conforming, but they never show how to rectify the code.

Are there any tools that suggest compliant code, as I’m not very good in converting one script code to another as I usually end up making things worse!

Reply

Wolfgang Hopp January 26, 2008

I did this (see the following – from your site)
but on client side apears in firefox also IE the errormessage … in line#7
———————————————————————
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 tags in your theme’s header.php file.

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

I have a problem too. We use your fine cutline-3-column-split-11 theme in wordpress Version 2.3.2 DE-Edition. In the category box are shown only 14 of the 25 (sub-)categories. what can we do to see all?

thanks in advance for helping us.

Reply

markov January 27, 2008

hey chris,

it’s not only the fonts that make your site sooooo readable – i like the color too.

have set up that script in the header, and all’s good.
however, to raise a question put forward by rubysquad almost a year back: “must the title and key words always appear on the left top hand corner of the page?”

it may be a simple question, but do reply cos it’ll help.
thanks.

Reply

Goran Giertz February 2, 2008

Thank you for the valuable information. Have implemented it on some of our client blogs.

Have an ExSEOllent 2008

Reply

lauren February 9, 2008

Thanks for the file !

Reply

Julie March 5, 2008

I found it hard to get my head around this article at first not being a techie – but it’s excellent once the old grey matter kicks in!

Reply

Yan March 24, 2008

Just want to know how this code is different from All In One SEO plugin I’m using?

Reply

Nick March 27, 2008

If I implement this code into my header, will it change my existing permalinks and existing google seo placement?

Reply

John Mininno April 30, 2008

we are converting to wordpress and following these suggestions. Thanks

Reply

Muslim Blog May 8, 2008

I wish this can be applied to Blogger.

Reply

küvet May 12, 2008

[...] some content may not be suitable for minors.) Chris is an exceptional web designer, and the excellent tips that he’s provided through his blog posts have proven invaluable. Furthermore, his companion [...]

Reply

Dan Johnson May 25, 2008

I’m a novice, just started ‘designing’ a WordPress blog, Cutline theme. My question is, can I take advantage of your suggestions if I’m being hosted by WordPress?

Reply

Chris P. May 27, 2008

Dan — Unfortunately, the hosted WordPress solution doesn’t provide you with the flexibility necessary to make changes like the ones I suggest here on Pearsonified. If you really want to run your site the most efficient (and controlled) way possible, then you ought to look into a shared server package. They’re inexpensive, and – even better – you can run multiple sites on them.

Reply

Richd June 23, 2008

Chris;
Love the Thesis Theme….where do I put the google analytics code? I can’t find a tag.

Reply

Chris Pearson June 23, 2008

Richd — You can add Google Analytics yourself by copy/pasting the code into your footer.php file, or you can opt for a more robust solution involving your own custom WordPress function.

Either way, Thesis 1.0 contains an options panel that will allow you to paste your Analytics code into a box that is specifically designed for that purpose. Expect 1.0 to drop sometime this week!

Reply

Ajit July 22, 2008

hey,
the things which you all have suggested are for a website,but what in case of a blog where we don’t have header file.
please reply..
thank you

Reply

Mario July 29, 2008

Ajit, wordpress now does this automatically without the conditional php of this post. AND you MUST have a header, or else look into the section of the pages you want to edit..but again…now WP does this already

Reply

Shankar August 8, 2008

Mario is right… WP now does this automatically.
Just in case u need to also have dynamic meta description and keywords, install the “all in one seo pack” plugin from wordpress plugin directory!! Its a really good one!

Nice share though…. Cheers :D

Reply

Ride it like you stole it August 21, 2008

I implemented this on my Blogger Blog Ride it like you stole it a while back and it has really helped in my blogs search engine results placement.

Another Great Tip!

-Dave

Reply

Alda August 26, 2008

The only thing about this post that is confusing me is this:

“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.”

What exact values do I need to enter? Will the code still work if I don’t do this?

Thanks! Learning lots here ….

Reply

Chris Pearson August 26, 2008

Alda — Thesis already contains a more robust version of what I spoke about in this post, but the general setup (in the WP admin panel) is essentially the same, save for some semantic changes. The “Options” tab has been replaced by the “Settings” tab in WordPress 2.5+, and you should enter your Blog Name and Tagline under the “General Settings” area. This will allow you to take full advantage of the <title> tag benefits that Thesis offers, and it’ll also allow you to get some content on the left side of that em-dash (—) in your title bar!

Reply

Alda August 26, 2008

Wow – that was quick!! Thanks Chris … :)

Just so I’m absolutely clear … do I still enter the code in my header file with Thesis, or is it already built in?

Reply

Chris Pearson August 26, 2008

Alda — It’s already built in.

Reply

Alda August 26, 2008

Thank you!!

Reply

Janet August 30, 2008

Thanks for your wonderful design work. I use PressRow.

What about adding a stats program links for the blog? Where and how? And is there one that’s better for blog format?

I see that you added (<meta name=”generator” content=”WordPress ” />
) in header_about.php.

Thanks again for your wonderful designs.

Janet
Author, Life Coach, Creator of Greene’s Release

Reply

Stephen September 12, 2008

Thanks for the tip. I have been working hard on my website which promotes Budapest apartments to rent over the past 6 months and it has been a frustrating ride. Thanks for the tip though will add it to my list and try and guage the response. Thanks for the tip on dynamic titles should help me get on top of the SEO game.. my website is here and any suggestions would be appreciated.

Stephen

Reply

John Haydon October 2, 2008

Chris,

Very powerful SEO tip, that I was able to implement in 45 seconds (really – I timed myself…)

One thing that people miss when considering Thesis for their theme is the forum community (which is the best), and your Pearsonified.com blog.

Thanks so much for making the blogosphere a safer place for us all!

John

Reply

Hans October 5, 2008

Two questions:
1) I use permalinks (date+title), doesn’t that give different titles already? I have included the code but I do not see any difference in terms of title URL

2) Isn’t the edit function of the title when writing a new page or post the place to change the permalink URL and simplifying this to include just a few search categories the way to go?

Reply

Soopermedia October 7, 2008

You should keep your title bold with prominent HTML title tags between head tags to capture the major search engine results easily. You would be able to optimize your blog pages effectively if you encoding titles of pages in HTML or PHP.

Reply

Daniel Westman October 11, 2008

Hey,
Was trying to fix the dynamic titles on my website but got an error, I think you’ve got an extra } in the code. I’ve pointed it out for you below. Dont know if it should be there, but it caused an error for me.
— }

Reply

Daniel Westman October 11, 2008

Okay, the code was left out in my comment. But the extra } is in the last part of the code, after the bloginfo(name).

Reply

inertz December 29, 2008

Nice tips. Like to try it on my blog.

Reply

Mateo January 16, 2009

Hey Chris! As soon as I updtated to WP 2.7, the headline and font sizes changed in the r-sidebar as well as in the center blog (3-Column Split) to a much smaller and almost illegible size. In fact, they seen to get smaller and smaller in the center (blog) portion of the front page. They do not change sizes in the other pages (about, forum, etc), only on the home page. Suggestions?

Thanks

Reply

Chris Pearson January 17, 2009

Mateo — I no longer have anything to do with the Cutline theme (I sold it in March 2007), so I’m afraid I can’t help you out. Sorry!

Reply

Fritz January 20, 2009

Just getting started with my site. This is a good tip, thank you, will implement right away!

Best,

Fritz

Reply

Sports Buzz February 13, 2009

Sweetness; I just set up my new blog and i wasn’t sure what a code coding to use was. Glad i stumbled across this.

Reply

james February 19, 2009

Hi, i don’t have a blog yet i found this good information about keywords i always wanted to know how to make your keyword bold in the title bar and in your description , but i still don’t get it you said past this code between your title keyword but how, I mean if i have a keyword ”How To Make Money With Google Adsense” so where should i past the code? and what about the description how to make keywords bold there?

james

Reply

james February 19, 2009

Guys i just created a blog with ”blogger.com” and i don’t know how to make my title keyword bold i was able to make words bold in my post but don’t know how to do that in title and tags bar it says there hold Ctrl with b i did that but it didn’t work when i press ctrl with b a new window apears i don’t know what to do can you help me how to make key words bold in title and tags bar.

james.

Reply

james February 20, 2009

hey chris how does the keyword system work i mean if i have a blogger blog, i couldn’t make my title keywords bold in my blog post, and if my blog rank in google search engine and some body search for my keyword will it appear in bold there or i have to do some work to make my title keywords bold and description as well i need your help with this how does this system work.

james.

Reply

james February 20, 2009

Hardcore, where to paste that code?

Reply

Claire Jarrett March 4, 2009

Thanks, will have a go at this!

Reply

Phil Real Estate March 4, 2009

I’m not sure if all in one seo plugin is much better than this.

Reply

themisfit March 7, 2009

Sweet tip, just found this site, consider yourself subscribed.

Reply

futuRich March 20, 2009

It always amazing me at how many sites dont do this simple step, which, i suppose is kind of good for those of us who do use it (makes for less competition).

Reply

webcenter April 1, 2009

As always spot on. The title tag is most important factor for SEO.

Reply

Mandy May 22, 2009

Great tips! I can testify from experience that this information is solid and more than applicable.

Reply

A. Karno May 23, 2009

I am a huge Copyblogger fan.
I own a coffee company and am
doing my damnedest to make a
the Internet a bigger part of it.

Having a zero- IT background ( coffee
if more like chemistry / culinary )
and trying to play catch-up…
with my business SUCKS- but your
site is making some sense out
of all of this.

So, that love-hate thing you spoke of in your
bio? “Fahgettaboutit.” Your voice verily lifts
off the page and float like a red balloon.
I LOVE your writing.
CopyBlogger it like going to school.

If you want some of the good stuff,
the real joe and some java juice
send an address- a P.O.
or office, and I’d be thrilled
to send a proper thank-you.

A.

Reply

Bruk June 7, 2009

ok, im like 3 yrs behind, but in 09 im loving your sold cutline theme and i want to update to your most current theme considering how intensely serious you are about coding, development, ease of use, excellence. thesis is it? im going to check for it on wordpress.com now. . .i dont really get how adding pixel width and height to images helps with seo but im doing it anyways. . .

Reply

Chris Pearson June 7, 2009

BrukThesis is what you want, but at this time, you cannot use it on WordPress.com. Instead, you have to use the version of WordPress that you get from WordPress.org, and this also requires you to have your own Web hosting. I work with these guys for my hosting, and soon, they’re going to be offering 1-click Thesis installations in addition to their 1-click WordPress installations.

Reply

Bruk June 7, 2009

thank you! wordpress.com appeals in the sense i can get other no so tech savvy people in on a group project and even back off on management bc the interface is so easy. it kinda seemed like the future to me, although no customization, no getting into the headers, php files… im going to check out yr hosting recommend though for my own personal biz!

Reply

Bruk June 7, 2009

hey if i sign up for them do i say you referred me or something? it looks really good. ..

Reply

Chris Pearson June 7, 2009

Bruk — Nah, my personal referral code is already built into the link I gave you.

Reply

Robert July 19, 2009

SEO tricks like these are a MUST. You can’t expect good results without applying informative SEO information like this post provides, keep up the good work Chris.

Reply

Brett August 16, 2009

Yes! 3 years later and it’s still gold. Thanks, champ.

Reply

spacebaby August 29, 2009

Hey Chris,

Thanks a lot for this important and valuable tip. I can’t seem to find the tags in my theme’s header.php. I’m using thematic and all I can see is the below. Where should I paste the code? Please advice. Thanks!

\n”;?>

<body class=”">

Reply

spacebaby August 29, 2009

sorry, seems like the code can’t appear here but I’m sure you know what thematic is. the only title I can find in header.php is “<?php
thematic_doctitle();”
hope you can help.

Reply

Aery August 30, 2009

Would really appreciate if WP had made this functionality by default :)

Reply

Mathdelane September 21, 2009

I was hesitant at first to implement this code for fear that my blog and targeted keywords will go downslope in the SERPs but since I’m using Thesis and Chris created it, I’m giving it a go and will be keenly observing the results. I’ll get back in time.

Reply

Gavin October 17, 2009

Great article. I guess I have never really thought about doing this before until now that is. It makes perfect sense to add this to your title tags though as it does stand out

Reply

Jana October 21, 2009

Thesis looks awesome! Love the video…I am just blogging newbie and have my first blogger up… and I think that WP can be more customized, but I did not know that Thesis can be customized like that…I was always looking for WP theme that is easy to change without writing inside the codes, because I have hard time to find the right code. My blogger has pinkish look and feel and am wondering if I can have the same or better look and feel with the customizable Thesis..

thanks,
Jana

Reply

Howard October 22, 2009

I am confused! I write the title of my post and I always have my main keyword in it but with the SEO plugin you fill in the title you want for SEO purposes, isn’t that the title the SE will pick up?

Reply

Howard October 22, 2009

Maybe I am stupid but I don’t understand what you are trying to tell me.

Reply

Scott Lovingood October 29, 2009

How do I implement this in Thesis?

Reply

Chris Pearson October 29, 2009

Scott — You don’t have to; it’s already baked in there :D

Reply

Scott Lovingood October 29, 2009

Chris

Thanks for the quick reply. I see where mine have the dynamic title tag. Now a question on how to modify it. How do I make it so it shows up like this

Dynamic Post Title | Blog Tag Line | Custom Site Name

:) BTW Thesis rocks!!! I am getting ready to start installing 1.6 on the sites today.

Reply

Howard October 29, 2009

I also use the Thesis theme. Did I make a mistake downloading all in one SEO?

Reply

Chris Pearson October 29, 2009

Howard — Thesis handles all of those things, so I don’t really see any compelling reason to keep a third-party plugin around.

Reply

Howard October 29, 2009

Thank you! Very much for the quick response! I tried to set my site up myself but I ended up messing up the categories and pages and posts, I could not set my side bars up properly so I have a guy working on fixing it now but he is not familiar with Thesis but he said he is going to study it a bit.

I am very frustrated with the mess I created because it it holding up my progress.

Thanks again!
Sincerely,
Howard

Reply

Howard October 29, 2009

Maybe I should ask you, is there anything I could do to y blog to improve SEO. I also downloaded Jeff Johnsons Traffic Getting SEO plugin because everyone was saying it was the best thing around, but now I am thinking I probably should not have done that either.

Reply

Scott Lovingood October 29, 2009

Howard

Jeff’s plug in gives you a list of plug ins that will help optimize your blog for traffic. The only one that you really don’t need is All In One SEO as the functionality is included in Thesis.

I loaded his plug in on one blog. Installed all the suggested plug ins and optimized them. Then disabled Jeff’s plug in. I really didn’t need it after that.

I have one blog without Jeff’s plug in and a different set of plug ins than the ones he suggested but they perform basically the same function. Jeff’s plug in is great for starting out and understanding what you need to maximize your blog for SEO.

Thesis does a lot of it but things like internal links, etc can be improved using other plug ins.

Reply

Howard October 29, 2009

Hey Scott,

Thanks a lot for explaining all that to me, I really appreciate it. I am going to transer my SEO details from all in one SEO to the SEO fields that came with Thesis and then delete all in one.

Thanks again!

Reply

Chris Pearson October 29, 2009

Howard — I don’t use anything for SEO beyond the tools that come with Thesis. You should be in the habit of filling out both a custom title tag and a meta description for each page of your site (using the input fields beneath the post editor), but outside of that, it’s really up to you and your content.

The basic truth here is that if you do all the technical things right (as Thesis does), you don’t have to do anything besides focus on quality content. The rankings will work themselves out (massively to your advantage, as you’ll find).

Reply

Scott Lovingood October 29, 2009

Hey Chris

I use Smart SEO Links which automatically creates internal links, Smart SEO Images which helps to remind me to create good alt tags and other things. Though the internal links are only really an advantage for blogs. Other sites would benefit from a more siloed structure.

One quick question – Can I make my titles automatically look like this when searched for in Google? I have seen some sites that do it.

Dynamic Post Title | Blog Tag Line | Custom Site Name

Reply

James Bond November 9, 2009

Hi, i’m not able to implement php code to my web site: will somebody help me..

Reply

Howard November 9, 2009

Ok here is another dumb question. Is it better to write a page for your blog or a post? I never just write little blurbs I always write a 400 to 600 word article optimized for one specific keyphrase which must be working because I was looking up a keyphrase to see if I could find more info to write about and I could not believe my eyes but I was third on the page.

I originally started out writing pages but then I switched to writing posts, I was wondering if it made a difference.

Yes! I have another problem which I don’t know if it is computer related or what. My WYSIWYG does not display properly when I am writing a post, if I switch to HTML view it is OK but when I switch to VISUAL view I have no options, however when I open my admin on my other computer everything is fine, but I really do all my work on the computer that is not displaying it properly.

Reply

Rob McCance December 26, 2009

This is cool but how hard is it to write a title tag for each page/post while you are generating the page/post?

Reply

Kathy January 5, 2010

Hi Chris,
I have just stumbled onto this site, and am astonished at how much info is here! You are extremely gracious to share as much as you do! Actually, it’s a little overwhelming – I wish there was a glossary that I could look at to learn a little more about some of the lingo used (e.g. php code; XML, etc).

Up til now I’ve concentrated primarily on keywords in my website text, and know that I need to incorporate blogging into my efforts. Lots to learn! I am wondering how I’ve actually done as well as I have so far with knowing as little as I do! :) Thanks for all the helpful info!

Reply

Bill Montgomery January 19, 2010

Hi Chris, I want to upgrade to the Developers level…..
how do I do that?
I’ve misplaced my username and password and all contact information that I had regarding my account.

Thanks,
Bill
503-659-5390

Reply

Chris Pearson January 22, 2010

Bill, I just sent you an email with your account information as well as instructions on how to upgrade to a Developer’s Option.

Reply

Marco January 26, 2010

This is a great piece of code. I had to not only add it to my header.php file, since I had used a template for the pages I also added it to my single.php file (which is the one that displays the individual posts). Works great, just waiting for Google to index the changes. Check it out!

Thanks!

Reply

john January 27, 2010

chris… total WP nubie here… but is there an “easy” and by “easy” I mean “don’t have to code” way to put tabs on the cut line theme? Like Front page, About…. I’d like to add : Services, Clients and Contact. Is there a tutorial on how to do that ?

Reply

Chris Pearson January 27, 2010

John, although I sold the Cutline theme in March 2007 and no longer have control over it, I can tell you that no, there is no code-free way to add nav menu items on that theme.

That said, my Thesis Theme makes it incredibly easy to add and manage nav menu items. Check out a demo video for the Thesis nav menu, and then see the DIYthemes site for more info on this n00b-friendly theme!

Reply

john January 27, 2010

nice… thanks chris….. so like what would you suggest as a theme that allows some minimal customization but you can do it for multiple sites? Looks like Thesis is $87 for just one site…. if I start getting some customers where they want me to build their sites is their like a pro version ?

Reply

Chris Pearson January 27, 2010

You can purchase a Developer’s Option ($164), and that gives you access to the Client Site Option ($32–$40 per site, depending on the quantity you buy). Each time you deploy Thesis on a client’s site, you’ll need a Client Site Option—it’s a low cost that you should build into your pricing. Best of all, it should cut your development time significantly, thereby saving you time and money.

Reply

john January 27, 2010

Nice…. thanks for the explanation. So I can buy the basic version now and upgrade to the pro version later correct ?

Reply

Chris Pearson January 27, 2010

You got it ;)

Reply

john January 27, 2010

alright man…. now ur gonna have to put ur sales hat on…. just found out about this other WP theme… that ijustine uses. “Tasty” may seem lame to someone as tech to you, but the themes pricing is :

Get Tasty Now
Buy a single license for $29 and run it on one blog, or go with the unlimited license for $49 and run Tasty on as many of your domains as you’d like!

So you gotta sell me now on why I should go w/ Thesis vs. Tasty. Do I have more customization with Thesis v. Tasty ? Is Thesis easier? Let me know, ’cause I’m ready to get started!

Reply

Chris Pearson January 28, 2010

John, I don’t know squat about Tasty, have never heard of it, and can’t comment on it.

The whole point of Thesis is to nail down a perfect HTML structure that performs as well as possible in the search engines. Since I come from a design background, I also sought to make Thesis as flexible and customizable as possible, all while retaining the markup precision that is the hallmark of the theme.

There are lots of imitators and wannabes trying their hand at the theme marketplace these days, and for good reason—it’s a burgeoning market! Since April of 2008, Thesis has been the highest-selling single product in this space for the following reasons:

  • I project a continued, public, and vocal commitment to excellence at every turn, and it echoes throughout my work
  • The support staff I’ve got in place at DIYthemes is the best in the industry by a zillion miles. Girlie, my forum administrator, was the head of MovableType’s customer support for years before coming on board with us nearly a year ago. With the help of super-ninja Godhammer (another forum admin), she successfully transformed support into the strongest aspect of my business. At the end of the day, this is what will matter most to you, the user.
  • I don’t have any marketing jargon to throw at you, and my prices are my prices. Thesis is meant to serve as the ultimate foundation for your site—something that you get right the first time and don’t have to mess with later. It’s the real deal, man.

And yeah, I’ll bet you anything it’s easier :D

Reply

RM January 28, 2010

I’ve hand coded sites based on php consisting of hundreds of pages, with no CMS in the past years. They take thousands of hours and are bears to manage …and at the end of the day, you still have no blogging capability. Every tiny change moving forward takes another 100 hours, even with the php include files.

I built this site on Thesis in about 4 or 5 hours just to check out both WP and Thesis and see what all the hoopla was about.

I will never go back.

While you lose *some* VERY minor design flexability, the benefits FAR outweigh this, to just say the very least about it.

I will convert my main site to WP + Thesis as soon as I can stomach the effort and again, I will never look back.

Great work with product!

Reply

Howard February 8, 2010

RM,

Your site looks incredible! I have the developers copy of Thesis and I haven’t a clue how to turn my dull sites into colorful masterpieces like yours.

I do use it for some sites that do not require much style like This type of site but dressing up a site like This one I cannot do any better than what you see.

I would love to have your skill. I was also wondering if anyone else includes the All in One SEO Plugin with their Thesis sites. Jeff Johnson has what he calls “The Traffic Getting All in One SEO Plugin” and it automates a lot of the SEO set-up.

Just curious.

Reply

Rob in Atlanta February 8, 2010

Howard,

Thanks for the props. Websites are like women – everyone elses’ looks better!

LOL

Reply

Stuart Meyer February 12, 2010

I’m completely new to WP and just got the Thesis Theme. Even with Thesis there is a lot to learn and I can’t imagine having to code php to get a site looking like RM’s. I wish I had an example of a photography blog done with Thesis because I still feel like I’m flying blind. -Stu

Reply

Chris Pearson February 15, 2010
Robert March 5, 2010

Hey Chris,

is it possible to use this code for a site that isn’t a blog?

I mean like you search for lets say: dogs. And on the results page I want to have in the title dogs. How is this possible?

Thanks,

Robert

Reply

Stuart Meyer March 6, 2010

OK. I’m totally blown away by the SEO power of Thesis. I’ve only had this for a month now, and I’m ranking highly for keyword search terms from several posts, but with keywords from these posts thrown together. And, they’re keywords from the image titles and alt text to boot. I now have to think about how keywords from different posts and images can be combined in search keywords in order to avoid useless matches in Google. Landing on a totally unrelated website just because of a wierd combination of keywords is one of my own pet peeves. -Stu

Reply

Robert March 6, 2010

Hey Chris,

never mind my question. I figured it out on my own way.

I have added in my search.php:

session_start();

$_SESSION['search']= $text;

//$text is from -> $text = $_POST['text']; //

And in the header of my resultspage.php i have:

– name of website

Regards,

Robert

PS: you can also use this for the keywords meta tags ;)

Reply

Robert March 6, 2010

Whoops.

I mean in the header between the title tags:

Reply

Robert March 6, 2010

Darn. Sorry for spamming. But this page doesn’t allow me to place php code here.

You can remove the last posts if you want.

Reply

Kaushik Biswas March 22, 2010

Great help with a great explanation, everything is so clear now. I’m trying this out today. Thanks!

Reply

PMG May 11, 2010

Nice article on Title tags… However, I did notice you are using underscores instead of dashes. Does this make a difference in how you do title tagging? I’ve always heard from SEO Service experts that dashes is the best, not underscores.

Anyways, looks like it’s working for you though cause I’m reading your stuff.

Reply

Shawn May 25, 2010

Thesis makes everything so much easier.

Thanks for the info.

Reply

pudsning June 25, 2010

Didn’t quite get this, dynamic like changing over and over or just as new title for every page?

Reply

Constantin July 11, 2010

I started doing some SEO modifications to my Blogger blog and the results came incredibly fast (two weeks). Indeed the title tag is important!

Thanks for this.

Your interview on Mixergy was awesome!!!

Reply

Ron July 28, 2010

Nice Article.

Dynamic tag is very necessary for SEO.

Reply

Gavin August 6, 2010

Yep, Title Tags are very important for SEO. Try to use your keywords naturally, and avoid stuffing. Another great thing to do is to have keyword rich URLs.

To do this, go into Wordpress Settings, Permalinks, and type:

“/%postname%/” (without the quotes)

in the field that says custom structure. This will also bring you more long tail traffic :)

Reply

Troy August 13, 2010

Thanks a lot. The txt file works great.

Reply

Aanmelding August 24, 2010

Thanks Chris,
This is better then what i use now, it’s simpler and it’s on 1 line

Reply

Frixter2000 August 30, 2010

Thank you for sharing this one. This could really help for my blog that has recently transferred its domain name. I’m again building more backlinks so that i will rank higher in SERP. And of course, a good title is a must. When using blogger as your free hosting partner, there is no need to individually edit your title tag because the title of your article will become the tag. Let us just be very careful that our most important keywords are on the first 4 words of our blog post title. You can also edit the HTML part of your blog so that i will appear in SERP with a format Blog Post Title + Blog Title.
Here’s the exact way how i did it please do a search on my blog using the keyword: Post Title before Blog Title

Reply

Rudi September 2, 2010

Hey Chris. Great post. The title tag is way cool and definitely stands out! Legend dude

Reply

Kylie September 8, 2010

Hi Chris,
Thanks another great post always enjoy reading your articles

Reply

Carolina September 15, 2010

Hi!!!

I’m trying to do SEO for my website in order to learn how to….
and so far I have two questions:

1) For the Google search engine, it’s the better to read static (in page) title and descriptions or dynamics ones (as php variables stored in my DB)

2) I know it’s not the topic of this post… but there are a lot of experts here XD
I have two different versions of my website (mobile and web) both of them have the same content but different functionalities. I have an script that redirect a person who use an iPhone or iPad (I haven’t do others…) to the mobile web site.

I would like to know how Google knows which one is the mobile version version in order to index it in the correct place. is there an important meta tag that I need to include for mobiles??

Thank you very much!!!!!!!

Carolina

Reply

Andy February 24, 2011

I find all-in-one SEO plugin does the job the same plus gives you the option of having a different post and page title … oh and description :)

Reply

James March 2, 2011

Excellent and really clear explanation of title tags for a newbie
Thanks

Reply

Pete Smith April 23, 2011

Man this is a great site for SEO info, thanks for all the hard work.

Pete

Reply

MadMike June 9, 2011

Well, the optimising the titles is the easyest method to use long tail targeted keywords. By the way, the descriptions are too important. In the end, the most thing you must have in mind is RELEVANCE OF KEYWORDS.

Reply

Kris June 24, 2011

I agree, the title tag is probably the most important factor when it comes to SEO.

I’d say that including the keywords in the url, description and headlines is pretty important too.

Reply

Cody July 24, 2011

If you don’t use wordpress here is another tutorial that explains the PHP side of things really well.

Does anyone know of a good tutorial that explains the MySql side of things a little better?

Reply

M. El Kadimi August 6, 2011

Wonderful!
Us there a way of have a similar code for Joomla CMS?
Thank you in advance

Reply

jabcat September 1, 2011

The custom title tags I create with Thesis for each post on my site have been disappearing recently. A few days or months after I create a post with a custom title tag, I go back, check the post and the custom title tag field is blank. It’s gone missing. I know it used to be there because when I start to retype it into the blank field, auto complete shows it to me. Doesn’t happen to every post but plenty of them. What’s happening? How do I fix it?

Reply

Chris Pearson September 2, 2011

Jacbat, this is a question that is appropriate for our forums. I’m not aware of any known issues with custom titles disappearing, but if anyone else has experienced the same problem, you’ll be able to find out in the forums.

Reply

Michelle DeMarco September 18, 2011

Since converting to Thesis, my Alexa ranking has dropped steadily every week (editor’s note: much like golf, a lower Alexa ranking is better). I’m now approaching the half million mark! Conversions are rocking and sales are up. People are asking me what I’m doing. I love it! Thanks so much for an incredible package in Thesis. Worth its weight in GOLD!!!

Reply

Hassan Raza October 30, 2011

I am still working on Seo of my website. This article has really helped me. :) Thanks.

Reply

Jim January 26, 2012

I am creating my website in php but, no idea how to setup a dynamic title without CMS.

Reply

svend March 1, 2012

Hi Chris… got a couple simple, but critical questions for you before I buy… can you email me…

Thanks!

Svend

Reply

darren March 11, 2012

Great post, just working through my sites SEO and this post will come in handy. Thanks.

Reply

Rob Thomson May 3, 2012

Thank you Chris, I need to get this going on my sites. Once again the information here is such a blessing as I learn more about SEO.

Reply

Paul June 3, 2012

I actually went for the unedicated theme instead of thesis!! going to use thesis for my next site, thanks for the help.

Reply

max thornton June 20, 2012

Is there a way to make this dynamic targeted title follow through if the users click through onto another page once they have landed on my website?

Reply

Maína August 2, 2012

Worked perfectly, thanks!!

Reply

DJ Jammin Jay August 22, 2012

Hey Stuart Meyer: Does this SEO only work for WP? I just have a regular website.

I’m on page 2 of google for keywords “indianapolis wedding dj” but obviously want to be on page 1. Any neighborly help would be great.

Reply

Marc September 4, 2012

Am I doing something wrong with this?

I added the code to my theme. It works perfectly for Pages and Posts, however the home page shows:

‘- Site Name’ but not ‘Description – Site Name’

Have tried adding ifs all over the place, but to no avail!

Reply

Steve September 17, 2012

Thank you!

Reply

Aman September 27, 2012

on october 1st , a new version of thesis theme will be launched, and it will be free for all existing users, i think there will be much more ease in doing all these things and there will be no more plugins required in wordpress if you are running a thesis theme.

Reply

Stuart Meyer January 20, 2013

Hey there neighbor DJ Jammin Jay,

SEO works equally for your website, whether WP or not. It universally works for anything on the web that is html-based, which I noticed your website is. Thesis WP theme can, and is, used by many as their main website and you can rank on page one with it no problem using these SEO techniques.

Reply

Jimbo February 11, 2013

I must confirm that this works to have different titles on the different pages. (It’s even true if you’re using an old style web editor rather than Wordpress). However, we applied it to the pages and posts of our site, and it’s doing very well in the SERPs.

Reply

Sahith March 3, 2013

Great tip, working on it..:P

Reply

Tony July 31, 2013

Good post… as someone else said, I’m also wondering how this is different from using the All in One SEO plugin. And you technically don’t want truly “dynamic” titles… meaning, ones that would change all the time. Google doesn’t want to list dynamic content in their results but content that they know will be there. You’re really talking about editing page titles. Still, I have to agree that doing this helps.

Reply

Gauravhasija August 22, 2013

Interesting one…. and DIYthemes.. are really helpful…. i am going with the basic plan for now

Reply

pradeep September 13, 2013

can you explain in details dynamic title and dynamic description through example ..???

Reply

Hoot and/or Holler

Previous post:

Next post: