Home ›
How to add a node id to a page's CSS classesHow to add a node id to a page's CSS classes
Submitted by Benjamin Melançon on November 17, 2009 - 7:36am
If your page.tpl.php already prints $body_classes (or equivalent) in the <body> tag, then you likely need only to add a single line to have the nid included with a class such as "node-1".
drupal add node id to theme template
drupal add node id to page template
More like this
- Add a subsection class to Drupal page body for theming Views and other parts of a site that can be defined by parts of the path
- Use the admin theme for Drupal help pages
- Add CSS to a Drupal page through template.php
- How to add CSS and Javascript just for the front page, as for a custom GMap call
- Disabling or moving node/add/[content-type] links from beneath "Add content" in the navigation menu also removes them from the Add content page (node/add)

