A
by Aaron T. Grogg 4.8 (5 reviews)

Add URL Slugs as Body Classes

Add URL Slugs to body Class

Add URL Slugs as Body Classes ranks #7,760 among WordPress.org plugins with 700+ active installations, a 4.8/5 rating from 5 reviews, and was last updated May 15, 2015. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 4.2 (Current: 7.1.4)
v1.3 Current Version v1.3
Updated 11 years ago Last Update on 15 May, 2015
Refreshed 1 week ago Last Refreshed on
Top 10% by installs Downloads -33.9% this week No update in over a year
View on WordPress.org
Rank
#7,760
— No change
Active Installs
700+
-10.1%
KW Avg Position
N/A
— No change
Downloads
6.6K
+1 today
Support Resolved
0%
— No change
Rating
96%
Review 4.8 out of 5
4.8 (5 reviews)

Next Milestone 800

Total Progress 78%
700+ 800+
174
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 22 more installs to reach 800+

Rank Changes

7,372 7,566 7,760 7,954 8,148 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026 08-11-2026
7,755 7,765 7,775 7,785 7,795 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026 08-11-2026
Current #7,760
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026 08-11-2026
0 10 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026 08-11-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

4.8
5 reviews
Overall 96%
5
4 (80%)
4
1 (20%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Security History

Source: WPVulnerability

No known vulnerabilities on record for Add URL Slugs as Body Classes. Checked 3 months ago.

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
1.3
Last Updated
May 15, 2015
Requires WP
3.1+
Tested Up To
4.2
PHP Version
N/A
Author
Aaron T. Grogg

Support & Rating

Rating
★ ★ ★ ★ ★ 4.8
Reviews
5
Support Threads
0
Resolved
0%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

TL;DR

AI summary of the plugin's readme

This plugin is for WordPress site owners and developers who want to target specific URLs with CSS or JavaScript. It solves this by breaking the page URL into pieces and adding each piece as a class on the body tag, making categories, dates, and nested page paths available as selectors.

  • Adds URL slugs as body classes
  • Splits URL into individual pieces
  • Supports category-based classes
  • Supports nested page paths
  • Enables custom CSS targeting
  • Enables custom JS targeting

Frequently Asked Questions

Common questions about Add URL Slugs as Body Classes

Additional CSS classes are added to the HTML body tag so you can easily add custom CSS and/or JS to Posts or Pages. Basically anything that appears in the URL after your domain name, will be split on the "/", then pushed back together separated by spaces in the HTML's body tag.
Say you created a Post that could be found at the following URL: http://www.example.com/2012/02/24/wordpress-plugin-add-url-slugs-as-body-classes/ That 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, because a Category page like: http://www.example.com/category/wordpress/ get these additional CSS classes: category wordpress This would allow you to add custom CSS and/or JS to all Category pages, or even just the WordPress Category page! Or a nested Page that could be found at this URL: http://www.example.com/movies/star-trek/wrath-of-khan/ would get these additional CSS classes: movies star-trek wrath-of-khan So you could add custom CSS just for your Movies pages, other custom CSS for just the Star Trek Movies pages, and still more custom CSS for just the Wrath of Khan Star Trek Movie page.
Really only if you used some custom CSS or JS to some specific webpages. You could add custom background images, use different fonts, add sound effects, add different JS libraries, the list is limited only by your needs, really.

Sign In / Register

You need to sign in or register to use this feature.