It adds a CSS class to the body depending on the parameters included in the URL
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.
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…
| WordPress | 4.6+ requiredTested up to 6.9.4 |
| PHP | 5.6+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.