the structure of your theme should also be considered when it comes to SEO. Here are some of my tips:
1. SEO your wordpress Logo. This will make use of <H1> tag when in the index page and the <p> tag if it's not in the index page.
2. Too much <h1> tags in the index page. If there are h1 tags like this:
replace it with:
3. Don't fill the sidebar with <h2> tags. Instead replace them <h4> tags.
If you're using widgets, Open wp-content/themes/<theme name>/functions.php and find:
Change it to
4. Use <h1> tags for single post titles. Edit single.php and replace <h2> tags of the post title to <h1>.
into
5. Prevent duplicate titles for paged archives by changing the content of your <title>
***After doing some changes, you'll also have to modify your css to match the changes you made.
6. Add rel="nofollow" to outbound links on your homepage and category pages or simply Add rel="nofollow" to all external links :P
7. Validate your theme and check for errors, Visit:
***I'm offering free HTML validation error fixing, just send me a kind note.
1. SEO your wordpress Logo. This will make use of <H1> tag when in the index page and the <p> tag if it's not in the index page.
Code:
<?php if (is_home()) { ?>
<h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>"></a></h1>
<?php } else { ?>
<p><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>"></a></p>
<?php } ?>
2. Too much <h1> tags in the index page. If there are h1 tags like this:
Code:
<h1><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a></h1>
replace it with:
Code:
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a></h2>
3. Don't fill the sidebar with <h2> tags. Instead replace them <h4> tags.
If you're using widgets, Open wp-content/themes/<theme name>/functions.php and find:
Code:
‘before_title’ => ‘<h2 class=”widgettitle”>’,
‘after_title’ => ‘</h2>’,
Change it to
Code:
‘before_title’ => ‘<h4 class=”widgettitle”>’,
‘after_title’ => ‘</h4>’,
4. Use <h1> tags for single post titles. Edit single.php and replace <h2> tags of the post title to <h1>.
Code:
<h2><?php the_title(); ?></h2>
into
Code:
<h1><?php the_title(); ?></h1>
5. Prevent duplicate titles for paged archives by changing the content of your <title>
Code:
<title><?php wp_title(''); ?><?php if ($paged>1) { echo ' - Page ', $paged;} ?></title>
***After doing some changes, you'll also have to modify your css to match the changes you made.
6. Add rel="nofollow" to outbound links on your homepage and category pages or simply Add rel="nofollow" to all external links :P
7. Validate your theme and check for errors, Visit:
Code:
http://validator.w3.org/
***I'm offering free HTML validation error fixing, just send me a kind note.
Last edited: