PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Body Class
  4. Body Class By URL Parameter
Body Class By URL Parameter icon

Body Class By URL Parameter

It adds a CSS class to the body depending on the parameters included in the URL

By Jose Mortellaro·Body Class·Free
5(1 reviews)
·50 active installs·Updated 3 months ago
DownloadCompare

As of April 2026, Body Class By URL Parameter is a WordPress body class plugin with 50 active installations and a 5/5 rating from 1 reviews. It has been downloaded 1.9K+ times in total. Requires WordPress 4.6+ and PHP 5.6+. Available on WordPress.org since 2021. Top alternative: WP Browser/Platform Detection.

5/51 reviews
50active installs
1.9K+total downloads
5 yearssince 2021

Overview

It adds CSS classes to the body depending on the parameters included in the URL.

For each URL query argument, the plugin adds a CSS class to the body that is composed by [bc]-[paramenter name]-[parameter value].

Where [bc] is the a prefix that is always the same.

If for example you share your page https://your-domain.com/sample-page on Facebook, the user after clicking on the link will land on a page having an URL that looks like https://your-domain.com/sample-page/?fbclid=IwAR0o12nq9Em-x1n

In this case the plugin would add the class bc-fbclid-IwAR0o12nq9Em-x1n to the body.

Then you can use that class for your custom CSS.

.bc-fbclid-IwAR0o12nq9Em-x1n .disable-for-facebook{
  display:none !important
}

In the example above you hide all the elements that have the class .disable-for-facebook…

Read full description on WordPress.org

Ratings & Reviews

51 reviews
5 ★
1
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress4.6+ requiredTested up to 6.9.4
PHP5.6+ required

Top Alternatives to Body Class By URL Parameter

WP Browser/Platform Detection icon
WP Browser/Platform Detection
5100 installsUpdated 3 years ago
ViewCompare
Add More Body Classes icon
Add More Body Classes
010 installsUpdated 10 years ago
ViewCompare
Custom Class Add On Page icon
Custom Class Add On Page
00 installsUpdated 5 months ago
ViewCompare
View all body class plugins →

Frequently Asked Questions

Contributors

Jose MortellaroJose Mortellaro
Plugin Info
Version
0.0.2
Last Updated
Dec 10, 2025
WP Requires
4.6+
Tested Up To
6.9.4
PHP Requires
5.6+
Active Installs
50
Downloads
1.9K+
Added
Oct 30, 2021
Business
Free

Tags

body classcustom css by url

Developer

J
Jose Mortellaro
55 plugins0.0M+ total installs
View all plugins →

Quick Compare

Body Class By URL Parameter vs WP Browser/Platform Detection→Body Class By URL Parameter vs Add More Body Classes→Body Class By URL Parameter vs Custom Class Add On Page→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.