SEO: The right way to use H1 tag

SEO: The right way to use H1 tag

SEO H1 tag

The heading tags H1, H2, … are used to emphasize content and by this way improve SEO strength of website. The H1 tag, the most important tag, is usually used for main topic of the web page. It is recommended that we should use only one H1 tag on per page. This causes some different ways of position H1 tag, its implementation in the header of website (blog) and the title of posts.

Continue reading → SEO: The right way to use H1 tag

Make rel=publisher Passed W3 Validator

rel=publisher is a HTML piece that makes Google recognize (by rich snippet parser) the publisher of current page in search result. Unfortunately, the common implementation of rel=publisher by <link> tag is not validated by W3 Validator. Although W3 validator is just a guide and we don’t have to follow 100%, but we should if we can. This post shows a simple solution to make rel=publisher become valid.

Continue reading → Make rel=publisher Passed W3 Validator

Better way to display title meta tag

To display title meta tag in WordPress, we can use wp_title function. But it’s not enough if you want your theme SEO friendly. In TwentyTen, TwentyEleven and Underscores (_s) themes, WordPress team has tried to solve the SEO issue by using the following code:

<title>< ?php
/*
 * Print the <title> tag based on what is being viewed.
 */
global $page, $paged;

wp_title( '|', true, 'right' );

// Add the blog name.
bloginfo( 'name' );

// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";

// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
    echo ' | ' . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) );

?></title>

What it does is formatting the title tag as:

  • For homepage or front page: Site name – Site description
  • For other pages: Page title – Site name (and maybe) – Paged

It’s ok if we just accept it. But when we go into the code, we’ll see it’s not very good:

Continue reading → Better way to display title meta tag

WordPress: Automatically Remove Short Words In URL For Better SEO

WordPress: Automatically Remove Short Words In URL For Better SEO

WordPress: Automatically Remove Short Words In URL For Better SEO

According to Matt Cutts’s answer in his interview at Pubcon, for good SEO, the URL should contains 3-5 words. If there are more than 5 words, Google’s algorithms typically will just weight those words less and just not give you as much credit. So, we should keep our URL as short as possible, and remove all unwanted words.

Continue reading → WordPress: Automatically Remove Short Words In URL For Better SEO