It looks like Drupal core creates its own page-* class for the body tag.

Unfortunately, its page-* class is more like Zen’s section-* class, but less capable. :-(

Anyway, having dupe page- classes is confusing and annoying. I think I'll need to change Zen’s current page-* class to a url-* class.

But I'm not sure if I should delete core's page-* class and rename section-* to page-* or if I should just leave core's page-* and Zen’s section-* as is.

Comments

johnalbin’s picture

Title: Duplicate page-* class in body » Remove core's page-ARG0 body class, leaving zen's page-PATH
Status: Active » Fixed

It turns out core's page-* body class is based on the internal drupal path. So, if /node/37 had a path alias of "/about", zen would output "page-about", but core would just take the first part of the /node/37 path spit out "page-node". :-p ugh. Who put that into core? It's useless.

So I'm going to remove core's page-* body class from zen's page.tpl.php.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.