Are You Still Using the Optimal Title Plugin?
One of the first things I install on a new WordPress blog would be the Optimal Title WordPress plugin, which fixes a blatant flaw in WordPressâ€™s default usability and search engine optimization.
Previously, WordPress blogs have the blog title come first before the title of the blog entry, which does not help search engine optimization at all. Having your page information appear before your blog name in the title is advantageous because it provides more meaningful search engine results and browser bookmark names. And of course, we want Google to crawl the title of the blog entry first before anything else.
Optimal Title is mirrors the function of
wp_title() exactly, but moves the position of the ‘separator’ to after the title rather than before.
However, Optimal Title has been deprecated. A â€œseparator locationâ€ argument has been added to built-in
wp_title() function in WordPress 2.5.
So if you’re still using Optimal Title in WordPress 2.5 and up, you can now disable that plugin and do this simple change to your
header.php, look for this line:
Now all we have to do is to remove
optimal_title();. But we can’t preplace it with the default WordPress call (
wp_title()) because the developers decided not to change the default behavior of wp_title(), and instead added the additional argument to the function in order to prevent breaking existing themes that rely on the current behavior.
Instead, use a call to
wp_title('»',TRUE,'right'). Your code should look like this:
And that would be it! Now you can disable Optimal Title, and give the faithful plugin a much-needed rest.