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,809 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.1)
v1.3 Current Version v1.3
Updated 11 years ago Last Update on 15 May, 2015
Refreshed 6 hours ago Last Refreshed on
Top 25% by installs No update in over a year
View on WordPress.org
Rank
#7,809
-1 this week
Active Installs
700+
-10.9%
KW Avg Position
N/A
No change
Downloads
6.6K
+3 today
Support Resolved
0%
No change
Rating
96%
Review 4.8 out of 5
4.8 (5 reviews)

Next Milestone 800

Total Progress 81%
700+ 800+
135
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 19 more installs to reach 800+

Rank Changes

7,799 7,805 7,810 7,816 7,821 14-09-2026 15-09-2026 16-09-2026 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-2026
7,794 7,806 7,819 7,831 7,843 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-2026
Current #7,809
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 14-09-2026 15-09-2026 16-09-2026 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-2026
0 10 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-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 1 month 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.