Skip to content
Select theme
Get Started

Custom Body Class

Summarize with AI

Custom Body Class Adds custom CSS classes to the front-end body for easy styling and layout flags-no template edits.

Adds custom CSS classes to the front-end body for easy styling and layout flags-no template edits.

  • Includes settings so you can tune this module for your site.
  • Body classes.

Enable it if:

  • You specifically need: Adds custom CSS classes to the front-end body for easy styling and layout flags-no template edits.
  • You want this Content feature without installing a separate plugin for it.

Open Custom Body Class settings from WP PowerSuite -> Modules after enabling it.

  1. Go to WP PowerSuite -> Modules.
  2. Open Content or search for “Custom Body Class”.
  3. Toggle Custom Body Class on.
  4. Open the module settings and save.

Toggle it off anytime to stop this module from loading.

  • Confirm Custom Body Class is enabled under WP PowerSuite -> Modules -> Content.
  • Use the feature this module controls (the admin UI, front-end behavior, upload, login flow, etc.).
  • ✅ Pass: you see the module-specific behavior described above.
  • ❌ Fail: re-check this module’s settings, then look for another plugin doing the same job.
  • No change after enabling. Confirm the toggle is on, hard-refresh, and review this module’s settings.
  • Conflicts. Temporarily disable other plugins that implement the same feature.
  • Unexpected side effect. Toggle Custom Body Class off to revert, then re-enable with adjusted settings.

Prefer the command line? You can turn this module on or off with WP-CLI instead of the dashboard:

Terminal window
# Turn the module on
wp powersuite module enable custom-body-class
# Turn the module off
wp powersuite module disable custom-body-class
# Check whether it is on, its category, and where its settings live
wp powersuite module get custom-body-class

Managing more than one site? Add --url=https://example.com to point a command at one site. If this is a Pro module, install WP PowerSuite Pro and activate your license first. New to WP-CLI? See the full command guide.

What does Custom Body Class do?

Adds custom CSS classes to the front-end body for easy styling and layout flags-no template edits.

Is Custom Body Class free?

Yes. Enable it under WP PowerSuite -> Modules.

Does Custom Body Class have settings?

Yes. Open module settings from WP PowerSuite -> Modules after enabling it.

How do I turn Custom Body Class off?

Go to WP PowerSuite -> Modules, find Custom Body Class, and toggle it off.

Developer notes (hooks & filters)

Source: modules/custom-body-class/admin.php, modules/custom-body-class/module.php. Boot: display · context: frontend.

Hooks (non-exhaustive): body_class.