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.
At line 60, there is the following:
if ($node->type) {
$body_classes[] = $node->type;
}
However, $node is never loaded before this. The consequence is only the class "node" gets added to node types, not "forum" or "blog" etc.
Attached is a patch that loads the node first and then checks for $node->type.
Comment | File | Size | Author |
---|---|---|---|
template.php_2.patch | 848 bytes | webchick |
Comments
Comment #1
webchick...and that would be a patch.