seo h1 tagging for a blog

Discussion in 'Programming' started by letsmakeamillion, Jul 24, 2007.

  1. #1
    I need to figure out how to get the following code to work on my wordpress 2.2 blog

    Using the code below or a modified version of it or your own original version, I need to figure out
    how to make it work on my blog so that the correct h1 tags are displayed around the most appropriate content AND
    that the entire visual appearance of the blog stays the same as it is now in terms of css and formatting font sizes etc.

    I believe the code below does a pretty good job of accomplishing this with the use of if statements, h1 and small tags.

    When I put this code in my blog I get a blank screen when I try to view it, so somthing about the code below is not compatible with my theme maybe ? I am not sure..

    PM me a quote, or if you want more info or are interested post in here.

    Thanks!
    Tom


      <?php if(is_home() && !is_paged()) { ?>
       <h1><?php  bloginfo('name'); ?>
        <small><br /><?php bloginfo('description'); ?></small></h1>
      <?php } else if(is_paged()){ ?>
       <h1><a href="<?php echo get_settings('home'); ?>" title="Click for Blog Home"><?php bloginfo('name'); ?></a>
        <small><br /><?php bloginfo('description'); ?></small>
       </h1>
      <?php } else { ?>
       <h1><a href="<?php echo get_settings('home'); ?>" title="Click for Blog Home"><?php bloginfo('name'); ?></a>
        <small><br /><?php if(is_single()) { ?> <?php } ?> <?php wp_title($sep=''); ?> <?php if(is_404()) { ?>404 Error: Page Not Found <?php } ?> <?php if(is_search()) { ?>Search Results for: <?php echo wp_specialchars($s, 1); ?><?php } ?></small></h1>
      <?php } ?>
    Code (markup):
     
    letsmakeamillion, Jul 24, 2007 IP