#1 (permalink)  
Old 03-14-2008, 06:48 AM
joaquin joaquin is offline
Senior Member
 
Join Date: Dec 2007
Location: Edmonton, Alberta, Canada
Posts: 268
Blog Entries: 1
Default Optimize Title Tag

I posted this question in the PLRPro forum too but it seems I get answers quicker here.

I want to make sure I don't do things that are not required as it may mess up my word press site. I think that is what happened to me before.
On Page 139 of the VRE handbook it says the following:

Optimizing Your Title Tag In addition, you would probably want to optimize your title tags so that your post title appears in the title tag. For this, you‟ll have to muck about in the header.php file – the simple way to do this is to navigate to the current theme folder on your web server (in the wp-content/themes/ area) and copy the header.php file on to your PC. There, make a backup of the file (in case you need to restore it later on), open it in a text editor or an html editor and locate the following tags:
<title> </title> Once you find that block of code, delete it and replace it with this code: <title> <?php if(is_home()) { bloginfo('title'); } else{ wp_title(''); echo ' » '; bloginfo('name'); } ?> </title>

So is this necessary or is this already done if you use the PLRPro WordPress installer???

Thanks In Advance


Joaquin Kenyon
__________________
http://www.solutionsforbadbreath.com
http://www.heartdiseaseawareness.com

When you are looking for a solution, you are feeling positive emotion - but when you are looking at a problem,
you are feeling negative emotion. Focusing upon a solution makes you feel positive emotion.
Focusing upon a problem makes you feel negative emotion, and while the differences are subtle, they are very important.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 02:34 PM
cobwab cobwab is offline
Senior Member
 
Join Date: Nov 2007
Location: Wareham,Swifts Beach,MA USA
Posts: 405
Send a message via Skype™ to cobwab
Default

Quote:
Originally Posted by joaquin View Post
I posted this question in the PLRPro forum too but it seems I get answers quicker here.

I want to make sure I don't do things that are not required as it may mess up my word press site. I think that is what happened to me before.
On Page 139 of the VRE handbook it says the following:

Optimizing Your Title Tag In addition, you would probably want to optimize your title tags so that your post title appears in the title tag. For this, you‟ll have to muck about in the header.php file – the simple way to do this is to navigate to the current theme folder on your web server (in the wp-content/themes/ area) and copy the header.php file on to your PC. There, make a backup of the file (in case you need to restore it later on), open it in a text editor or an html editor and locate the following tags:
<title> </title> Once you find that block of code, delete it and replace it with this code: <title> <?php if(is_home()) { bloginfo('title'); } else{ wp_title(''); echo ' » '; bloginfo('name'); } ?> </title>

So is this necessary or is this already done if you use the PLRPro WordPress installer???

Thanks In Advance


Joaquin Kenyon
Hi Joaquin,

I just checked my header.php file

<title><?php optimal_title(); ?><?php bloginfo('name'); ?></title>

So the installer does not change the code to what you mentioned. As you can see there is no conditional statement checking whether you are in the home page or not.

optimal_title() is a plugin that is already installed in your plugin directory. I quote from the plugin dir: "Mirrors the function of wp_title() exactly, but moves the position of the ’separator’ to after the title rather than before."

Read all about it here: 10 Things You Must Do When Changing WordPress Themes

Bottom line: Don't mess with it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-15-2008, 12:31 AM
joaquin joaquin is offline
Senior Member
 
Join Date: Dec 2007
Location: Edmonton, Alberta, Canada
Posts: 268
Blog Entries: 1
Default About Header PHP File

Quote:
Originally Posted by cobwab View Post
Hi Joaquin,

I just checked my header.php file

<title><?php optimal_title(); ?><?php bloginfo('name'); ?></title>

So the installer does not change the code to what you mentioned. As you can see there is no conditional statement checking whether you are in the home page or not.

optimal_title() is a plugin that is already installed in your plugin directory. I quote from the plugin dir: "Mirrors the function of wp_title() exactly, but moves the position of the ’separator’ to after the title rather than before."

Read all about it here: 10 Things You Must Do When Changing WordPress Themes

Bottom line: Don't mess with it.
Thank you Cobwab. I do appreciate the information. I'm quite sure some of the information written in the PLRPro manuals no longer apply as we have so many plugins and such with the Word Press installer.
I won't change it.

Joaquin
__________________
http://www.solutionsforbadbreath.com
http://www.heartdiseaseawareness.com

When you are looking for a solution, you are feeling positive emotion - but when you are looking at a problem,
you are feeling negative emotion. Focusing upon a solution makes you feel positive emotion.
Focusing upon a problem makes you feel negative emotion, and while the differences are subtle, they are very important.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT. The time now is 07:17 AM.


vBulletin style developed by Transverse Styles

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0