Closed (fixed)
Project:
Drupal core
Version:
6.10
Component:
block.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2009 at 18:12 UTC
Updated:
1 Apr 2009 at 18:44 UTC
Hello, I'm getting an empty h2 tag for the Search Block when I specify for the title. It renders open and close h2 tags with nothing inside.
This is an issue from an SEO standpoint, as it works counter to Google's recommendation of creating hierarchical text structure for web pages. An empty h2 tag is an SEO no-no.
I'm using the bluemarine theme with no changes to the block module. This occurs not only in the Search block, but other blocks as well, which is why I assume the h2 tag is generated from the block module itself.
I suggest moving the h2 tag inside of the php if statement so that it is only rendered if there is an actual title for that block.
Comments
Comment #1
apt94jesse commentedSorry, I spoke prematurely, the h2 tag is rendered in the block.tpl.php file and not in the actual module. This is how it should be and I can make modifications from there.