Enhances the body_class template tag, adding some extra classes to the body (post/page slugs, post categories, and archive parent categories) useful i …
As of April 2026, Ambrosite Body Class Enhanced is a WordPress body plugin with 300 active installations and a 5/5 rating from 5 reviews. It has been downloaded 8.5K+ times in total. Requires WordPress 2.8+ and PHP false+. Available on WordPress.org since 2010. Last updated 14 years ago — may have compatibility concerns. Top alternative: Head & Footer Code.
When activated, this plugin causes the body_class template tag to output five additional classes.
On single posts (is_single) :
postname-[permalink slug]
single-[category slug]
parent-[parent category slug] (all parent and grandparent categories in a hierarchy of any depth)
On pages (is_page) :
pagename-[permalink slug]
On category archives (is_archive and is_category) :
parent-category-[parent category slug] (all parent and grandparent categories in a hierarchy of any depth)
As of version 1.3, the plugin now supports custom hierarchical taxonomies. The new body classes take the following form:
On single posts (is_single) :
single-[taxonomy]-[term slug]
parent-[taxonomy]-[parent term slug] (all parent and grandparent terms in a hierarchy of an…
| WordPress | 2.8+ requiredTested up to 3.2.1 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.