WordPress plugin intelligence profile

Custom Class Add On Page

Add safely-prefixed custom classes to Pages, Posts, CPTs, and WooCommerce views—no theme edits required.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version1.0.0
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 6.7 · PHP 7.2
Directory statusactive
Last directory update9 Oct 20251y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Custom Class Add On Page version 1.0.0 as active, updated 1y ago and tested up to WordPress 6.8.

Overview

About this plugin

Add your own CSS classes to specific Pages, Posts, or Custom Post Types—without editing theme files.

Add custom <body> classes—safely prefixed—on any Page, Post, CPT, or WooCommerce view (Shop, Cart, Checkout, My Account) with zero theme edits.

I created Custom Class Add On Page as a simple way to manage <body> classes with a safe ccaop_ prefix. Choose the target (Page, Blog page, Single Post, CPT archive/single, or a specific CPT item), save, and the class is injected via the body_class filter. Clean code, lightweight implementation, and solving real problems are the focus.

Collaboration and feedback are welcome.

Highlights

– Add classes to: a single Page, the Blog (Posts) page, all Single Posts, CPT Archive, all CPT Singles, or a specific CPT item.

– Safe auto-prefix ( ccaop_ ) prevents conflicts.

– WooCommerce-aware: Shop (product archive), Cart, Checkout, and My Account are supported.

– Clean admin UI with a table listing every rule you’ve created (class + location) and a delete action.

– Activation redirect: after activation, you’re taken straight to the settings page.

– Lightweight: uses the body_class filter only—no front-end bloat.

  • Need Help?
  • About Author

Video Tutorial

⚡ What you can configure

  • Enter a custom class name (auto-saved as ccaop_{your_class} ).
  • Choose where to apply it: Page / Post / Custom Post.
  • For Page → pick any page (Blog/Posts page is intentionally excluded here; use Post → Blog page).
  • For Post → choose Blog page (posts index) or All single posts.
  • For Custom Post → choose the CPT and target ( Archive, All single, or Specific item ).

Usage

  • Go to Dashboard → Class Option.
  • Type your class name (e.g. hero, saves as ccaop_hero ).
  • Select Page / Post / Custom Post, then pick the exact target.
  • Click Save. Visit the selected view and inspect <body> —you’ll see your class.

⚡ Features

  • Ready to use—no coding needed
  • Auto-prefixed classes to avoid collisions
  • Page / Post / CPT (archive, single, specific item) targets
  • WooCommerce Shop, Cart, Checkout, My Account support
  • Rule list with delete action
  • Lightweight & fast, theme-agnostic
  • Works with cached sites (no dynamic output buffering)

WooCommerce Notes

If you select the Shop page under Page, the plugin detects it as the product archive and adds your class on Shop views correctly.

Similarly, Cart, Checkout (including endpoints like order-pay, order-received) and My Account are handled.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • body class
  • custom class
  • custom post type
  • page class
  • woocommerce
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 6.7 · PHP 7.2
Update activity9 Oct 20251y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.