Page Title

One of the biggest culprits for duplicate content on a website can be found in the head title tags. Having identical titles on every page or titles that are too similar will result in the majority of your content falling into the supplemental index. By default, Drupal will populate your title tags with the title you give to your pages followed by the site name specified in the Site Information (found at Administer > Site Configuration > Site Information.)

Most of the time this would be adequate. However, sometimes content titles are too much alike, especially on eCommerce sites when you have similar products with varying attributes. In these cases, you will want to override the Drupal defaults, and you can do this with the Page Title module. (At the time of this writing, the latest version was still in alpha, but I am using it successfully on a live site running a stable version of 5.5. However I recommend using the 2.0 Dev version). The newest version also requires the Token module which should already be installed for the Pathauto module.

The Page Title module allows you to customize the pattern structure for your titles, similar to the Pathauto module. You can also customize these patterns individually for each content type. Additionally, it enables you to override the predefined settings directly in your content creation page. Installing the Page Title module does require an extra step other than copying it into your modules directory. You must also add the following snippet of code to your template.php file located in your chosen theme directory.

function _phptemplate_variables($hook, $vars) {
  $vars = array();
  if ($hook == 'page') {

    // These are the only important lines
    if (module_exists('page_title')) {
      $vars['head_title'] = page_title_page_get_title();
    }

  }
  return $vars;
}

 

Page Title for Drupal 6 - I have tested this module on D6 and it works great and does not need the code snippet above added to the template.php file.

Once the Page Title module is enabled, you can change the settings at Administer > Content Management > Page Titles. You are required to set a default pattern structure for your content and your front page. Then you can also customize the patterns for each content type. For a list of all the tokens available for the Page Title module, click on the “more help” link. For example, you could change the [site-title] token to [term] which would add your category to your title instead. If you click on the “Content Type Settings” tab, you can specify which content types will display the “Page Title” field where you can override the predefined pattern settings.

Best practices for title tags would be to include the main keyword you are targeting for the specific page, however, it is not a requirement in order to rank well. You should avoid stuffing your titles with multiple keywords as this is a red flag for spam. Additionally, Google will only display a maximum of 64 characters (yahoo – 110 and msn – 70), so your best option would be to include your keyword phrase once near the beginning of your title.

Keep in mind that what is in your title tag is what users will see in the search engine results pages. Not only is it important for your titles to be unique and relevant, they must also be compelling enough for someone to click on them. Treat them as if they were an ad, because essentially this is the first impression visitors will have of your site. It isn’t enough to have high ranking because this doesn’t guarantee that people will actually land on your site.

Posted In

wedding

supply in stock and custom lace front wigs, full lace wigs, lace wigs, human hair wigs, remy lace front wigs, cheap wigs, cheap, buy, celebrity

cosplay | Tue, 07/27/2010 - 03:27

thank u my daer Very

thank u my daer
Very interesting post, I will be checking into this website again
شات
شات بنات قطر
chat
قطر
شات
شات قطر
دردشة قطر
شات بنات قطر
شات كتابي
دردشة
دردشة كتابية
منتديات
qatar
qtr
girls qtryat
qtryat
العاب فلاش
العاب
بنات
قطريات
بنات قطر
بنات قطريات
بنت قطر
صورلمناظرطبيعية
خريطة قطر
حظك اليوم
طيور الجنة
طيور الجنة
غشاء بكارة مفتوح
هل المراة تقذف
هيفاء وهبي
هل تعلم ان اسم الله مكتوب داخل جسمك
خريطة العالم
خلفيات بلاك بيري
ثيمات بلاك بيري
خالد عبد الرحمن
منتدى بدوي
محتار بقربك
jvhd]kj
عطلات العرب
مجهول قطر
بنات قطر
منتدى سنت قطر
سوالف بنات
العاب فلاش
hguhf tba
العاب دولز
منتدى سوالف
فيس بوك بالعربي
فيس بوك
العاب بنات
BlackBerry
بلاك بيري
بلاك بيري قطر
قيمزر
ألو فن
الو فن
allofan
اغاني شعبية mp3
العاب
القاب جديده 2010
العاب
قطريات
دليل مواقع
دليل مواقع
العاب فلاش
العاب سريعة
العاب بنات 2010
العاب بنات
العاب طبخ
حظك فى حبك
صورهيفاوهبي
اغاني mp3
اغاني
اغاني شعبي
اغانى شعبى
اغاني شعبية
اغانى شعبيه
اغاني حزينة
اغاني افراح
اغاني دجي
خريطة قطر
حظك اليوم
طيور الجنة
طيور الجنة
بنات السعوديه
منتديات
منتدى سعودى
بنات
السعودية
العاب
دليل مواقع
العاب فلاش
العاب بنات
العاب بنات
العاب تلوين
العاب مشاهير
العاب براتز
العاب طبخ
العاب بنات جديدة
العاب دولز
العاب بنات هاي
العاب باربي
العاب قص شعر
العاب هانا مونتانا
العاب ديكور
العاب ديكور
العاب العبي
العاب بنات
العاب بنات
العاب تلوين
العاب مشاهير
العاب براتز
العاب طبخ
العاب بنات جديدة
العاب دولز
العاب بنات هاي
العاب باربي
العاب قص شعر
العاب هانا مونتانا
العاب

arfat | Mon, 06/28/2010 - 12:03

What about login form?

First of all thanks for the very good article.
I have a relative question.
What about duplicate title of login and register pages?
Webmaster tools warn me for this and i don't have a clue how to solve this.

Best reviews for Music Mixers

Vasilis | Thu, 06/24/2010 - 06:27

Our search engine

Our search engine optimization service (SEO) will improve the ranking and quality of traffic to your website.homeowners insurance

atlas | Sat, 06/12/2010 - 21:38

I wanted to thank you for

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post

511 tactical

atlas | Wed, 06/02/2010 - 10:51

Page Title and H1 Tags

I just started using Page Title on a Las Vegas website that I manage, but my concern is with H1 tags. From an SEO standpoint, is it better to have an H1 tag that is the same as your Title or should it be completely different?

ThaDoctuh | Wed, 04/14/2010 - 20:13

You should avoid stuffing

You should avoid stuffing your titles with multiple keywords as this is a red flag for spam. Additionally, Google will only display a maximum of 64 characters,high ranking because this doesn’t guarantee that people will actually land on your site.

car insurance quotes

anna002 | Fri, 03/19/2010 - 11:02

I really enjoy it.Drupal

I really enjoy it.Drupal defaults, and you can do this with the Page Title module. (At the time of this writing, the latest version was still in alpha, but I am using it successfully on a live site running a stable version of 5.5.
Simi Valley Real Estate

jafir009 | Sun, 03/07/2010 - 14:42

Page Title...

Thanks, its really nice and will help a lot for SEO purpose, i am working for grocery coupons site and i may need to deploy this code but i want to aks that is it possible to develop an addon of this ? so that i can utilize this in more sophisticated way for my walmart coupons to create TITLE.

biladam | Mon, 10/26/2009 - 18:41

Thanks for sharing this

Thanks for sharing this useful information. For getting admission in web development and data base i need all of these information and study. And itil certification, ence and gmat exam are also very informative for me in this purpose.

avanoah28 | Sat, 08/08/2009 - 09:16