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.
Ideally, for SEO reasons, only the Home page is assigned a H1 to the logo and sitename, subsequent pages usually have the logo just left in a div, and the page title is given a H1 tag. However with this theme, I've noticed that every single page has the logo marked up as H1.
Admittedly, I have no idea whether this has been fixed in Blueprint 2.x, but I find that it's bothersome that 1.7 works this way. Can anyone offer a fix?
Comment | File | Size | Author |
---|---|---|---|
#3 | page.tpl.php.patch | 660 bytes | joelstein |
Comments
Comment #1
designerbrent CreditAttribution: designerbrent commentedThanks for the comments and suggestion. I'm wondering if you have any documentation to back this up? I haven't heard anything about that before, though I know I'm not all knowing!
I would be open to a patch, though at the moment I would like to see that happen as an option in the settings page. I may eventually write that but right now my focus is on the D7 version of the theme which is nowhere near ready!
So please, I would love to see some good information on the best use of h1 tags on the page.
-Brent
Comment #2
susheel_c CreditAttribution: susheel_c commentedHi Brent,
I'd love to submit a patch and lend you a hand in the magnificent effort you're putting in, but I'm not very good at that sort of thing (patches and PHP, I'm a designer). I think that I've seen this sort of structure an all good Search Engine Optimized themes that I've come across on Drupal (Check Zen Theme) and Wordpress (well, atleast more frequently on wordpress).
The H1 tag is supposed to describe the content of a web page in much the same way as a the chapter title of a book. H2 describes the content of sub sections of the page, so on and so forth.
Here is one link discussing it at yoast.com.
Here's an extract from Opera's Developer Articles website, in an article about semantic markup:
I hope this helps: Please feel free to mail / message me if you'd like any help with the theme from a designer's POV.
Comment #3
joelstein CreditAttribution: joelstein commentedI agree with susheel_c; everything I've seen makes me think that he's right. Plus, lots of users have been trained to use H2 tags in their WYSIWYG's, which causes semantic problems when the page title is also an H2.
Here's a patch which works for me.
Comment #4
designerbrent CreditAttribution: designerbrent commentedThanks for the help on this. It has been patched and committed. Will show up shortly in the dev release and soon in the next alpha.
Comment #6
susheel_c CreditAttribution: susheel_c commentedThanks for the support, designerbrent