Widget CSS Classes icon
Content & Editing

Widget CSS Classes

Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.

Not recommended for new sites

Is Widget CSS Classes still safe to use?

  • Problem: Not maintained Last updated 2 years ago (version 1.5.4.1).
  • Problem: Not tested with recent WordPress Tested up to WordPress 6.7; the current release is 7.1. Needs PHP 5.2.4+.
  • Pass: Well rated Rated 4.9/5 by 74 users on WordPress.org.
  • Pass: Widely used Active on 80,000+ sites.

For a new site, or if you are planning a rebuild, choose a plugin that is still maintained. Unmaintained plugins stop getting security fixes and tend to break as WordPress and PHP move on.

No maintained plugin does exactly the same job. We checked the directory for an actively updated, well-rated plugin with the same features and didn't find a safe match.

If your site depends on Widget CSS Classes, we can update it for current WordPress and PHP versions, review it for security problems, or rebuild the feature you need.

Get it updated Check all your plugins Browse maintained Content & Editing plugins

Overview

Widget CSS Classes describes itself as: “Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.”

It is active on 80,000+ WordPress sites and rated 4.9 out of 5 by 74 users on WordPress.org. Developers can extend it through 4 actions and 15 filters, listed below.

We haven't published a hands-on review of Widget CSS Classes yet. Want one, or need help with it? Send us a request.

How to install Widget CSS Classes

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Widget CSS Classes” and pick the one by Jory Hogeveen.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install widget-css-classes --activate

Requirements: WordPress 3.3+ · PHP 5.2.4+ · tested up to WordPress 6.7.11

Hooks & customisation

Widget CSS Classes 1.5.4.1 fires 4 actions and 15 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

widget-css-classes — top hooks
// Change the label for the CSS Classes form field.
apply_filters( 'widget_css_classes_class', esc_html__( 'CSS Classes', WCSSC_Lib::DOMAIN ) );

// Modify the list of all CSS classes. Can also be used for ordering etc.
apply_filters( 'widget_css_classes', $classes, $widget_id, $widget_num, $widget_opt, $widget_obj );

// Modify the widget parameters, normally to add extra classes.
do_action( 'widget_css_classes_add_classes', $params, $widget_id, $widget_num, $widget_opt, $widget_obj );

// Change the capability to access the CSS Classes field.
apply_filters( 'widget_css_classes_class_input_capability', self::$caps['classes'] );

// Change the capability to access the predefined CSS Classes select field. NOTE:…
apply_filters( 'widget_css_classes_class_select_capability', self::$caps['defined'], self::$caps['classes'] );

// Modify the list of custom CSS classes. Can also be used for ordering etc.
apply_filters( 'widget_css_classes_custom', $custom_classes, $widget_id, $widget_num, $widget_opt, $widget_obj );

Browse all 19 hooks with examples →

Widget CSS Classes: frequently asked questions

Is Widget CSS Classes free?

Yes. Widget CSS Classes is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is Widget CSS Classes safe to use?

Widget CSS Classes has not been updated for 2 years. Plugins without updates stop receiving security fixes, so we recommend a maintained alternative for new sites. Users rate it 4.9 out of 5 from 74 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Widget CSS Classes work with WordPress 7.1?

It isn't confirmed. Widget CSS Classes was last tested with WordPress 6.7, 4 releases behind the current 7.1, so test it on a staging site before relying on it. It requires WordPress 3.3 or later and PHP 5.2.4 or later.

How many websites use Widget CSS Classes?

Widget CSS Classes is active on 80,000+ WordPress sites, according to WordPress.org. It is currently at version 1.5.4.1, last updated on November 12, 2024.

What are the best alternatives to Widget CSS Classes?

We didn't find a maintained plugin that does exactly the same job. Browse the top-rated Content & Editing plugins for related options.

Can I customise Widget CSS Classes without editing its code?

Yes. Widget CSS Classes 1.5.4.1 fires 4 actions and 15 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 19 hooks with examples.

Done for you

Let us deal with Widget CSS Classes for you

Move to a maintained plugin without losing your settings, or keep this one and have it brought up to date.

Update an abandoned plugin

from $249

Keep the plugin your site depends on, made safe for current WordPress and PHP.

  • Compatibility with current WordPress and PHP
  • Security review and fixes
  • Deprecated code replaced
  • You keep a maintained copy

Typical turnaround: 5–10 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need Widget CSS Classes customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Jory Hogeveen. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

About the developer

Jory Hogeveen

7 plugins · 101,100+ installs in total · 5 of 7 updated in the last year

  • Released this month
  • Highly rated
  • Some plugins look abandoned
68 maintenance
score
Developer profile →

More plugins by Jory Hogeveen

All 7 →

View the WordPress admin as a different role or visitor, switch between users, temporarily change your capabilities, set screen settings…

9,000+ installs 36 hooks

Pods Alternative Cache is a file-based or database-based caching solution for hosts that have limitations on object caching.

5,000+ installs 2 hooks

Integrate with Gravity Forms to create a Pod item from a form submission.

1,000+ installs 62 hooks

Alternatives in Content & Editing

See all →

Enables the previous "classic" editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports all plugins that…

8+ million installs Reviewed 4 hooks

Duplicate Posts, Pages and Custom Posts easily using single click

3+ million installs Reviewed 3 hooks

The go-to tool for cloning posts and pages, including the powerful Rewrite & Republish feature.

3+ million installs Reviewed 21 hooks

Enables the previous "classic" widgets settings screens in Appearance - Widgets and the Customizer. Disables the block editor from managing…

2+ million installs Reviewed