• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

WordPress SEO Tips - H1 and Title Tags ...

A recent WordPress blog integration for Lisbe Partners lead me to consider some Search Engine Optimization decisions that WordPress makes in it templates and here I share modifications.

A recent WordPress blog integration for Lisbe Partners lead me to consider some Search Engine Optimization decisions that WordPress makes in it templates and here I share modifications.


1. Headings!

WordPress Default template lists Post Titles as <h2> in order to reserve <h1> for your Blog Title. At AWP we like to use <h1> for unique page content titles, so the first main text you see on the page is <h1>. We generally have great SEO ratings, so we are going to stick with that strategy.

The template files, archive.php, links.php, page.php, single.php and search.php can be changed directly. To affect the heading tags for posts, you will need to insert some conditional code in index.php (or post.php, since this file can be used on the single post, the post category list views, and some times the home page). In the following example <h4>’s are used as the list view headings.

<<?php echo (is_single() || is_home()) ? "h1" : "h4"; ?> class="title">
    <a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
        <?php the_title(); ?>
    </a>
</<?php echo (is_single() || is_home()) ? "h1" : "h4"; ?>>

Insert this into the beginning of index.php. (Modified from geniosity musings)


2. Page Title

Another SEO measure we’ve implemented at AWP is ordering titles with specific content first in the browser title bar. For example, if we are several layers deep, the title goes “Page Title _ Sub-Section _ Section _ Website Name,” etc. For more of an explanation, see Web Designer Wall (go to #7).

For interior pages WordPress Default theme uses “Blog Title > Category > Post Name,” which is not Search Engine friendly. To improve this, I borrowed code from The Blueprint Theme which integrates the Google Blueprint framework into WordPress (which I also used in my blog template).

<title><?php wp_title(); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> | <?php } ?> <?php bloginfo( ame); ?></title>

So, now we get “Post Name > Blog Title.” Happy SEO improving!

 View Full Story.
Posted at 11:41:22 am | Permalink | Posted in SEO  

Related Stuff

Improving security in Wordpress plugins using Nonces

Using a nonce (number used once) is the best way to protect your plugin against a cross-site request forgery (CSRF) hacker-attack. Nonces ...

10 New WordPress Plugins

This plugin enable admin to put up a splash page to show that the site is down for maintenance. Come with a timer to tell how long the site ...

WordPress Forums Plugins To Build Community

Growing your blog beyond publishing can be done quite easily by using WordPress Forums Plugins. Community growth greatly depends on ongoing ...

5 Annoying WordPress Plugins

Usually I attempt to share useful WordPress information but today, I thought we could have some fun with 5 of the most annoying WordPress ...

New releases for jQuery and Wordpress

The jQuery Database plugin takes your HTML tables and allows you to write a query against them similar to MS- or mySQL. I haven’t had ...

Be the first ... |Add your comment.

Your Comment ...

  Name (required)

  Email (required, hidden)

  Website


Top Stuff

Free Blogger templates Anime Themes

Wordpress Guestbook Generator Plugin

GeekLog

Zookoda

Introduction to blogs and blogging

jumpcut


Our Partners

Facebook Applications

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines

Stock Exchange Chat


About Webloglines

Webloglines is a project offers a comprehensive collection of blogging services, articles, themes and plugins from around the world. Whether you're looking to promote your own blog or find blogs on various topics, this site is for you.


Search


Topics

  • Adsense (9)
  • Blogging Tips (59)
  • Blogs Slides (25)
  • Blogs Websites (22)
  • Digg (8)
  • How to Blog (65)
  • Search Engines (2)
  • SEO (40)
  • WordPress Plugins (88)
  • WordPress Security (28)
  • Wordpress Themes (36)
  • Wordpress Tips (56)

© 2006 www.webloglines.com. All Rights Reserved. Powered by IRange