Hello everyone!

I know people has asked these kind of questions a lot of time, but my question is a bit specific.

Following some SEO tutorials for Drupal I've read that it is recommended :
-to have the site-name between "divs" instead of between h1 tags.
-to have only one h1 tag in the home page.

My theme is Aberdeen (it seems that is no longer maintained), and inside my page.tpl.php file there is this code:

Is the only code with h1 tags. So, to fulfills the SEO recommendations, is it as easy as changing h1 into div? I haven't found enough information, but I've read in some place that is not as easy as change h1 into div, why?

Any of you could help me? How must I change this code to fulfill the recommendations?

Thank you very much for your help!

Potter

Comments

rubeuspotter’s picture

Auch!! Sorry!! I clicked in "Post comment" instead of "Preview comment" and I forgot to add the < code > tags.

This is my code:

      <div id="header"> 
        <h1 id="site-name">
	    <?php if ($logo): ?>          
          <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" />
        <?php endif; ?>
	    </h1>
	    <?php if (isset($site_slogan)) : ?>
          <h2 id='site-slogan'>
              <?php print $site_slogan; ?>
          </h2>
        <?php endif; ?> <!-- /logo-name-and-slogan -->
Lyal’s picture

Hello Potter,

Switch that tag out - and then check the resulting output to make sure that there aren't multiple H1s in the resulting the source code. If there are, you may have to check other theme files and remove from there as well. The reason that people recommended you do this is to prevent your messaging from being diluted; some engines see H1s as being the most important keyword source, etc.

Vancouver Search Engine Optimization
Vancouver Technology Guy

rubeuspotter’s picture

Thank you very much! I'll try this.