WPCode
93Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
A plain simple plugin which allows you to add a custom CSS class the HTML body tag.
Custom Body Class is a WordPress plugin that allows you to add unique CSS classes to your pages or posts. This can help you customise the appearance of your site by applying specific styles to different content. The plugin also includes a feature for adding classes that only appear on mobile devices by prefixing the class name with 'mobile-'.
This plugin is suitable for developers or site owners who want to enhance their site's styling capabilities without needing to write extensive custom code. It is particularly useful for those who require specific styles for different devices.
Best for: This plugin suits developers and site owners looking to customise their site's CSS classes easily.
What it does well
Where it falls short
Custom Body Class provides a straightforward way to manage CSS classes for WordPress content. It is a useful tool for those wanting to implement specific styles without complex coding.
Andrei Lupu's own description of Custom Body Class, lightly tidied.
You can use this plugin to add a unique CSS class to your pages or posts.
TasteWP has prepared a quick WordPress instance with this plugin, so you can give it a try in this demo
There’s a way to add a class to appear only on mobile devices. You can do that by simply adding mobile- on the front of
the class. For example, if you want to have the class “car” for mobile side, you need to use “mobile-car”.
If you find this plugin helpful, or you just want to send me a coffee here are the ways:
Other plugins for developer tooling.
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...
Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...
Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...
Add PHP code to your pages and posts easily using shortcodes.
An easy, clean, and simple way to enhance your site with code snippets.