When "site name" is turned off in "Toggle Display," it still appears in the HTML with .element-invisible, instead of being removed.

This is a potential SEO and validation issue, because it means there's two <h1> tags on every page, which is illegal (and supposedly Google thinks it's spammy). Maybe an accessibility issue, if .element-invisible doesn't blank for screen readers.

This is easy to fix in page.tpl.php; the two conditions on $site_name should check $hide_site_name (which in fact page.tpl.php does not currently use at all).

Example site: http://buddhism-for-vampires.com/

thanks!

Comments

Anonymous’s picture

Title: Site name made invisible, not removed, if hidden option is selected » Site name h1 made invisible, not removed, if hidden option is selected
Issue summary: View changes
Jeff Burnz’s picture

Status: Active » Closed (works as designed)

Works as designed - if you would like different behaviour you can change this in your site/theme. I think you're misunderstanding the html5 specification which is quite different from the html4/xhtml spec, for example in html5 page "sections" can all have h1 elements if you want.