Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #0.0
doncheks CreditAttribution: doncheks commentedstripped tag
Comment #1
doncheks CreditAttribution: doncheks commentedThis 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
Comment #2
dudenhofer CreditAttribution: dudenhofer commentedSorry! 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!
Comment #3
dudenhofer CreditAttribution: dudenhofer commentedThis should be fixed in the latest dev release.
Comment #4
dudenhofer CreditAttribution: dudenhofer commentedComment #5.0
(not verified) CreditAttribution: commentedstripped tags