Blog Help
  Home arrow Blog Help arrow Page 4 - 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 - Recommended Wordpress Title Tag Script


    (Page 4 of 4 )

    After learning the basics of the default Wordpress title tag scripts, we can formulate ways in which we can customize the title tags. The specifications are the following:

    1. Clarity of titles (title should be direct and relevant to page content whether it is a post, pages or categories).

    2. You can decide the title of your front page (the home page title tag can be customized without using the blog title at all).

    3. In your Wordpress pages (not the post), the title of the page when viewed in the browser should be exactly the same title you placed in the “page title” in the “creating a new page” section in the Wordpress admin panel. This will make the title tag exactly what you need it to be.

    4. Wordpress category titles should reflect the exact category and nothing else.

    The recommended title tag script is shown below. Copy and paste this to your header.php and replace the old title tag, remembering to back up first.

    <title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } else bloginfo('name'); ?> </title>

    The concept behind this script is simple. Since in Wordpress, the post, the pages and the category name can be edited/customized, we can use this feature to formulate optimal title tags.

    In the code is a series of conditional statements that follows this set of instructions: If this is either a post or pages or an archive (such as categories), then display the assigned name of the variable. If not, just display the blog title.

    In this way, you can have the title of your post or pages exactly the way you intended it to be. The result is a user-friendly title which will make it easy for visitors to find relevant information on your site.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · 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

    - Create a Vlog
    - Creating a Personal Blog People Actually Wan...
    - 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

     
    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
    For more Enterprise Application Development news, visit eWeek