Module Description
Node Class is a simple module that allows users to add custom CSS classes to any node through the node/add interface. For Drupal 6 only Add the following PHP snippet to your node.tpl.php

<?php print node_class($node) ?> So your new node.tpl.php

<div id="node-<?php print $node->nid; ?>" class="<?php print node_class($node) ?> node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>"> Tutorial: Node class (Video tutorial)

Related Module: Node type class: This module adds class per content type.

Project Usage
3096
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
DEV
Module Summary
Node Class module allows users to add custom CSS classes to any node through the node/add interface in Drupal 6.
Data Name
node_class

OPENAI CHATBOT

OPENAI CHATBOT

08:35:49
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.