Hi, Currently,the sitename is wrapped in h1 tags and it appears on every page,so when I create a new article, I end up having 2 h1 tags on all pages.
Please is there a way to make the sitename have h1 tags on just the front page alone.
Thanks.

Comments

doncheks’s picture

Issue summary: View changes

stripped tag

doncheks’s picture

This worked for me.

Open sites/all/themes/storefront/templates/page.tpl.php.Add

<?php if ($is_front): ?>

to line 73 just before the beginning H1 Tag

Then add the following line of code after the closing h1 tag on line 77

<?php else: ?>
  <div id="site-name"><strong>
    <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home">
    <?php print $site_name; ?>
    </a>
  </strong></div>
<?php endif; ?> 

dudenhofer’s picture

Sorry! I had fixed the problem on dev and forgot to update this issue :P I basically did just what you mentioned :) I'll be rolling out another release in the next week or so that will include this fix. Thanks for pointing it out!

dudenhofer’s picture

Status: Active » Needs review

This should be fixed in the latest dev release.

dudenhofer’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

stripped tags