Help with title: Why does this happen?

3 replies
The title of my wordpress blog is Exercise and Nutrition Tips. I ran a title tag analysis and it includes my description and says my title tag is to big. It shows:
<title>Exercise and Nutrition Tips » Helping people reach their fitness goals</title>

Here is my header.php for <title>
<title>
<?php if ( is_home() ) { ?><?php bloginfo('name'); ?> &raquo; <?php bloginfo('description'); ?><?php } ?>
<?php if ( is_search() ) { ?>Search Results &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_author() ) { global $wp_query; $curauth = $wp_query->get_queried_object(); ?>Author Archives &raquo; <?php echo $curauth->nickname; ?> &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_single() ) { ?><?php wp_title(''); ?> &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_page() ) { ?><?php wp_title(''); ?> &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_category() ) { ?><?php single_cat_title(); ?> &raquo; Archive &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_year() ) { ?><?php the_time('Y'); ?> &raquo; Archive &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_month() ) { ?><?php the_time('F Y'); ?> &raquo; Archive &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if ( is_day() ) { ?><?php the_time('d F Y'); ?> &raquo; Archive &raquo; <?php bloginfo('name'); ?><?php } ?>
<?php if (function_exists('is_tag')) { if (is_tag()) { ?><?php single_tag_title("", true); ?> &raquo; Tag Archive &raquo; <?php bloginfo('name'); ?><?php } } ?>
</title>

Is there something I should change?
#happen #title
  • Profile picture of the author hezell1989
    This is the wrong section for that. I would recommend trying

    Programming Talk

    im sure you will have your problem fixed in no time
    {{ DiscussionBoard.errors[3331609].message }}
  • Profile picture of the author trainermike
    Ok will do. Thanks
    {{ DiscussionBoard.errors[3331654].message }}
    • Profile picture of the author Michael Shook
      I suspect all it means is that there are too many characters in your title. The max amount of characters to fit without truncation varies from serach engine to search engine, but is around 60. You have 70 including spaces.

      Just reword it so it is 60 characters or less.

      You could try something like this:

      Exercise and Nutrition Tips To Help Reach Your Fitness Goals

      That is 60 characters including spaces.
      Signature


      {{ DiscussionBoard.errors[3332091].message }}

Trending Topics