sandywp / plugins / wp-custom-body-class
Custom Body Class
A plain simple plugin which allows you to add a custom CSS class the HTML body tag.
Ready in seconds.
v0.7.5 10,000+ installs WP 5.2.0+
About this plugin
You can use this plugin to add a unique CSS class to your pages or posts.
Demo
TasteWP has prepared a quick WordPress instance with this plugin, so you can give it a try in this demo
Responsiveness
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”.
Support me
If you find this plugin helpful, or you just want to send me a coffee here are the ways:
- Use the Github Sponsor button
- Ko-fi
- Watch me coding on twitch.tv/thelup
- Or simply visit my site lup.dev and make those analytics ring the bells.
sandywp / also on the shelf
Try another plugin
5.0 · 200K+ installs
Easy add site-wide, category and article specific custom code before the closing </head> and </body>, or after…
4.1 · 1K+ installs
Easily insert custom HTML, CSS, and JavaScript into your WordPress site's header, body, and footer without modifying theme files.
4.8 · 700+ installs
Add URL Slugs to body Class
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.