Blog Help
  Home arrow Blog Help arrow Page 3 - Customizing Title Tags in Wordpress Without U...
Affiliate Promotion  
Blog Help  
Domain Name Tips  
How To  
Newsletter Marketing  
Online Business Help  
Search Engine Tricks  
Web Development  
Web Hosting  
Website Advertising  
Website Content  
Website Marketing  
 Webmaster Tools
 
Base64 Encoding 
Browser Settings 
CSS Coder 
CSS Navigation Menu 
Datetime Converter 
DHTML Tooltip 
Dig Utility 
DNS Utility 
Dropdown Menu 
Fetch Content 
Fetch Header 
Floating Layer 
htaccess Generator 
HTML to PHP 
HTML Encoder 
HTML Entities 
IP Convert 
Meta Tags 
Password Encryption
 
Password Strength
 
Pattern Extractor 
Ping Utility 
Pop-Up Window 
Regex Extractor 
Regex Match 
Scrollbar Color 
Source Viewer 
Syntax Highlighting 
URL Encoding 
Web Safe Colors 
Whois
 
Forums Sitemap 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BLOG HELP

Customizing Title Tags in Wordpress Without Using a Plug-in
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-12-03

    Table of Contents:
  • Customizing Title Tags in Wordpress Without Using a Plug-in
  • Title tag codes in Header.php
  • The default Wordpress installation title tag script
  • Recommended Wordpress Title Tag Script

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Customizing Title Tags in Wordpress Without Using a Plug-in - The default Wordpress installation title tag script


    (Page 3 of 4 )

    When you locate the header.php file, this is the default title tag script:

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

    Note that the blog name will come first; which is not advisable for user-friendly title tags. Let’s examine the actual effect of this default script.

    At your home page:

    If you set your front page or home page to be a static page (recommended for SEO purposes), the actual tag when viewed in HTML source will look something like this:

    <title>Blog title &raquo; Homepage</title>

    The “blog title” is a variable and depends on your choice. This can be edited in Dashboard---Options----General (typically for Wordpress version 2.3.2).

    If you cannot locate this, you may be using Wordpress 2.5.1, and this can be edited in Dashboard---Settings---General.

    So if your blog title is “Designing Attractive Widgets,” the title tag of the home page when viewed in a browser will be:

    Designing Attractive Widgets >> Homepage

    This is only beneficial if you set your blog title correctly.

    At your post pages:

    The default Wordpress title tag script affects so much in the post pages. The Wordpress post is as important as your home page, because posts in blogs contain unique, important and updated content.

    Highly similar title tags can prevent your pages from showing up in the search results and your great post will not catch readers’ and search engine attention.

    From the default title tag script:

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

    In a Wordpress post, there is a new variable called “post title.” This is represented in Wordpress PHP coding as <?php wp_title(); ?>

    How does the default script execute? It displays the Blog title first, as indicated by <?php bloginfo('name'); ?> then it will analyze to see if the page is a post or a front page. This is indicated by:

    <?php if ( is_single() ) { ?>

    If this is not a post, it will directly display something else, such as “Homepage.” If this is a post page, Wordpress will display the text “Blog Archive” after the “Blog title.” This is shown by the following:

    &raquo; Blog Archive

    By the way, &raquo when shown in the browser will display as “>>”

    Finally, since this is a post, it will display the post title, as indicated by:

    <?php wp_title(); ?>

    Let's illustrate this with an example. We'll use the one we used above, but say the post title is “Cheap Widgets 2008.” Then the post title in default Wordpress will be:

    Designing Attractive Widgets >> Blog Archive >> Cheap Widgets 2008

    Take note that the most important information to convey what the page is all about is shown last.

    At your category pages:

    Wordpress has categories, a distinctive feature that offers advantages over Google Blogger.

    Categories group blog posts according to topics.

    To continue with our example, let's look at a category named “All about Widgets.” The category page title when shown in the browser will be:

    Designing Attractive Widgets >> All about Widgets

    As a summary of the above examples, you can now imagine that if you fail to customize title tags, all of your pages will start with your blog title or name, which is annoying and irrelevant for most of your pages.

    More Blog Help Articles
    More By Codex-M


       · I already have a redirect plugin for my old permalink so that my old posts can find...
       · Hi Loozah, I think it will be ok. I suggest to try testing it in your template...
       · Great thanks this was just what i was looking for. hat-tip
     

       

    BLOG HELP ARTICLES

    - Offline Blog Managers
    - Get More from WordPress
    - Improving Blogspot Traffic with Free Google ...
    - LiveJournal: Blogs for All
    - WordPress Security Tips
    - Blogging with Yahoo
    - Sell Songs Online Safely Through Your Blog
    - Are E-Zines Still Relevant?
    - Rewriting URLs and Doing WordPress Redirects...
    - Build a Better Blog
    - Setting a Static Front or Main Page in Blogg...
    - Maximize Crawlability of WordPress Blogs and...
    - Create a Blogging Site
    - Checklist for Testing and Configuring Word P...
    - GoDaddy Hosting Server Configuration for Wor...

     
    Create the Optimal Architecture for your Critical Applications
    Warburton's the largest independently owned bakery in the UK faced a number of d....

     
    Five Best Practices for Deploying a Successful Service-Oriented Architecture
    This white paper describes the benefits you can expect with SOA, and how IBM can....

     
    Gartner Magic Quadrant for Application Delivery Controllers
    Gartner summarizes its view on Application Delivery Controllers, evaluates stren....

     
    Knowledge is Power
    What you don't know can hurt you, and is likely costing you money and increasing....

     
    Rationalizing the Multi-Tool Environment
    The rationalized multi-tool approach is flexible, scalable and cost effective. I....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT