Empty Node Class
Categories
Component ID
2698033
Component name
Empty Node Class
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This is an incredibly simple module which just uses jQuery to add a .empty class onto any existing node element that has no content.
This is done by looping through all elements with the .node class, testing to see if it has any HTML content within it, and adding the .empty class if not.
- Drupal 7: Unmaintained (But working).
- Drupal 8: Not currently available.
