SEO... <h1> for node titles and not Site title
guix - March 5, 2008 - 07:45
| Project: | Marinelli |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Lioz |
| Status: | closed |
Jump to:
Description
Hi,
Your theme is great ! Only thing, I wish it was a bit more SEO-friendly. You use the h1 tag for the Site title in every page. On every node page, it should be used for the node title when viewing a node. On the taxonomy pages it should be used for the term name, and so on. You just need to use it on the frontpage for the Site title, if possible. On all the other pages the node title should be just a link. What do you think about it ?

#1
Hi guix!
Good question :)
I think that the most important thing is to preserve hierarchical structure in the document. On my opinion h1 must inlcude the most important keyword (site title) then h2 h3 h4 are ment to provide variations and support the main heading.
According to this i would change the site slogan tag from h2 to p
what do you think?
#2
No, the most important element on a page is the page title. On the front page yes it's the site title, but on other pages it should be the most important element. When you're on a node or a taxonomy term, the most important is that node or that term.
Then yes, use h2 h3 for the other things.
That's my opinion, because having all pages with h1 for the site title is not relevant, often visitors from search engines come on ONE node page, for this page's title not for the site title, except when they arrive directly on the front page.
#3
I agree with Alliax and I can tell you this isn't only theoritical, I had bad SERPS when I had the same h1 (website name) on 2000+ articles on a website. There's not only h1, there are other parameters but it is definitively one of them. When you have specific h1 that are the article titles, that you use the same title in the title tag in the head, that the URL is rewritten with keywords inside, and when you link to this article on important keywords (or even title), you see a dramatic increase in the SERPS !
I had the same reflex as you, thinking h1 is for the website name because it's the highest hierarchical element, however when I discovered SEO I realized my reflexion was good for a one page point of view, but not appropriated at the website scale. But it's not really a big deal, I like your theme and could use it later and just hack it this way !
#4
I totally agree. Using h1 as site title however is rampant throughout Drupal themes, and really bugs me.
From back in the old days, when web pages were fixed size black text on grey backgrounds, H1 is the meaningful title of that current document.
When searching for a page, H1 is the title of that page
The behaviour of H1 should be scaled down to the level of granularity you are currently viewing.
Hijacking it for site banners is a strange habit that's evolved as people started thinking that branding was more important than content.
There is a train of thought that could model the site title as being the 'top' of the heirarchy, and conclude that every page element should be somehow stepped down from that, but that logic would mean that subsections of sites should themselves have a rank...
My Site [H1]
- Personal [H2]
- - CV [H3]
- - - History [H4]
- - - - Education [H5]
- - - - - High School [H6]
So does
/personal/cv/history/education.html
start off with an 'h5' title?
Gah. H1 is for the label of the thing you are looking at right now. Not its parent.
We need an H0 or H-1 for that.
I'm sure this debate has happened many times in history before now, so that's just my opinion...
#5
ok you are right.
i think we can solve this by using an
If is frontstatement on page.tpl.php to use h1 for site title only on the first page.I'll try this in the next release!
#6
ok i'm porting this feature in the next release
front page:
<h1>site name</h1><p>Slogan</p>
<h2>teasers</h2>
other pages
<p>site name</p><p>Slogan</p>
<h1>Node Title</h1>
is this ok?
#7
released with 6x-1.5
let me know if this solution works!
#8
It's great like that. Thanks for this and thanks again for your theme !
#9
Please make this also in Drupal 5 release!
Thanks in advance, greetings, Martijn
#10
ok fixed :)
#11
Hi Lioz, the 5 version last update is 2007-Oct-23.
Are the changes for 6 also when possible ported to the 5 version. Lots of people still have Drupal 5.
Thanks a lot in advance, a great theme!
greetings,
Martijn
#12
Hi Summit!
i wish i had more time :)
i decided to focus on the 6x version.
however i'll try to upgrade 5x version as well
#13
Thank you Lioz. There are still lots of Drupal 5 users out there!
Greetings,
Martijn
#14
i'll probably release a new 5x version this week.
#15
Automatically closed -- issue fixed for two weeks with no activity.