Founding offer 50% off all plans for the first 100 customers, and your renewal price is locked for life. 74 spots left Claim your spot
Turquoise abstract wavy W logo on a black background
Turquoise abstract wavy W logo on a black background
White WP PowerSuite logo on a black background
White WP PowerSuite logo on a black background

Summarize with AI:

On This Page
Last updated: 24/07/2026

Custom Body Class

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

Overview

Adds the CSS classes you configure to the front-end body element via the body_class filter—handy for layout flags and theme tweaks without editing templates. Supports multiple classes (sanitized), with sensible limits on count and input length. Empty setting means no change.

Solid black square
Solid black square
Who is this for?
  • Developers adding site-wide CSS hooks without theme edits
  • Agencies shipping layout flags for client CSS
  • Teams stacking body-class helpers with role/username modules

Features

Custom body classes
Add one or more classes to the front-end body.
Sanitized output
Classes run through sanitize_html_class.
No template edits
Works via WordPress body_class filter.
Simple settings
Paste classes; leave empty to disable effect.

Use Cases

  • Campaign layout flags
    Add campaign-spring to toggle seasonal CSS without a child theme.
  • Agency CSS hooks
    Ship a standard body class every client site can target.
  • A/B styling experiments
    Flip a body class while testing layout CSS.

Frequently Asked Questions

Related Modules

Turn off selected keyboard shortcuts for certain roles to gently discourage copying or inspection on the front end.
Disabled
Body classes for logged-in username and user ID—useful for theme tweaks and personalization. Privacy note: the username and ID appear in the...
Disabled
Dashboard widget with content and user counts, including drafts, published items, and custom types.
Disabled
Auto-unpublish posts after a date you set—set-and-forget for time-limited offers and listings.
Disabled
Content entries that link out to external URLs—handy for curated resources and partner pages.
Disabled
Custom settings screens with toggle, link, gallery, repeater, and 20 field types—ideal for theme options or client handoff.
Disabled
Convert content between post, page, and other types from the editor, Quick Edit, or bulk actions.
Disabled
Comments off everywhere—cleaner for brochure sites, landing pages, or catalogs.
Disabled
Generate many similar pages from a CSV template—great for local landing pages and repeatable layouts.
Disabled
Drag and drop to reorder categories, tags, and custom taxonomy terms, then apply that order in widgets, menus, archives, and supported queries.
Disabled
Founding Member Offer 74 of 100 spots left

Before you go, here's what you'd be leaving.

WP PowerSuite launched this month. The first 100 customers get 50% off and keep that renewal price permanently. When the offer closes on 31 August 2026, prices return to $79 / $239 / $399 and stay there.

  • 154 modules, all included on every plan
  • Renewal price locked for life
  • 14-day refund, one email, no questions
See founding pricing
26 founding members so far 22 days left