WORDPRESS TIPS AND TRICKS

I use WordPress 2.1 with the theme : WordPress Default 1.6 by Michael Heilemann aka KUBRICK but i would think most tips work with older and newer versions. (v1.5 to v2.2+) and other themes.


———————————————–

MODIFY YOUR WORDPRESS PAGES TITLE TAGS

The default wordpress titles look like this:


Home page: Blog Name (and that’s it)
Category Pages: Blog Name » Category
Archive Pages & individual posts: Blog Name » Blog Archive » Post Title

This is how I like my title tags:

Home page: Blog Name – description
Category Pages: Category Name – Blog Name
Archive Pages: Post Title

Go to PRESENTATION –> THEME EDITOR
Open your header.php and look for the <TITLE> tag.

All you have to do is copy / paste and replace the code below into your header.php

<title>
<?php if ( is_home() ) { ?>
<?php bloginfo(‘name’); ?> –
<?php bloginfo(‘description’); ?>
<?php } else { ?>
<?php wp_title($sep = ”); ?>
<?php } ?>
</title>

Below is the code i use for my blog, analyse and modify it to get your desired results :

<head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

<title>
<?php if ( is_home() ) { ?>
<?php bloginfo(‘name’); ?> –
<?php bloginfo(‘description’); ?>
<?php } else { ?>
<?php wp_title($sep = ”); ?>
<?php } ?>
</title>

<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

I used Megan McDermott’s wordpress tips to get the results i wanted.

—————————————-

MORE WORDPRESS TIPS AND TRICKS ::

STOP GOOGLE FROM INDEXING FEED PAGES
AVOID DUPLICATE CONTENT TO HELP YOUR GOOGLE SERPS
ADD THE SIDEBAR IN SINGLE AND ARCHIVE POSTS FOR KUBRICK THEME
ADD THE ADSENSE CODE INTO EACH SINGLE POST, JUST BELOW THE POST’S TITLE
MODIFY YOUR WORDPRESS PAGES TITLE TAGS
ADD A STATIC MENU AND ADSENSE CODE BELOW YOUR HEADER
SHOW FULL POSTS IN ARCHIVE AND CATEGORY PAGES

Related Images: