WordPress plugin intelligence profile

Add URL Slugs as Body Classes

Add URL Slugs to body Class

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.2
Current version1.3
WordPress coverageTested up to WordPress 4.2
Minimum stackWP 3.1 · PHP —
Directory statusactive
Last directory update15 May 201511y ago
Active installations700Adoption metric — not a quality score
WordPress.org rating4.8 / 5 from 5 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Add URL Slugs as Body Classes version 1.3 as active, updated 11y ago and tested up to WordPress 4.2.

Overview

About this plugin

This plug-in takes the URL, chops it into pieces, and adds each “piece” as an additional

class to the body tag.

Meaning, if your page’s URL is:

com/2012/02/24/wordpress-plugin-add-url-slugs-as-body-classes/

Your page’s body tag would have at least these classes:

2012 02 24 wordpress-plugin-add-url-slugs-as-body-classess

It gets much stronger when you start thinking about Categories or nested Pages:

com/category/wordpress/

which would add:

category wordpress

while:

com/movies/star-trek/wrath-of-khan/

would add:

movies star-trek wrath-of-khan

This allows you to very easily add custom CSS and/or JS to these pages based on these new CSS classes.

Please let me know if you have any questions/suggestions/thoughts,

Atg

com/

com

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • body
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.2
Minimum requirementsWordPress 3.1 · PHP not listed
Update activity15 May 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.