Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads pixel code, and more.
- Installs
- 3+ million
- Rating
- 4.9 (1.9K)
- Updated
- 2 days ago
Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.
| Last updated | November 12, 2024Not updated for over a year |
|---|---|
| Tested up to | WordPress 6.7.11Older than WordPress 7.1.4, the current release |
| Needs WordPress | 3.3 or newer |
| Needs PHP | 5.2.4 or newer |
| First published | July 16, 2012 |
| Support, last two months | 1 of 1 threads resolved (100%) |
4.9 / 5 from 74 reviews
| 5 stars | 70 |
|---|---|
| 4 stars | 3 |
| 3 stars | 0 |
| 2 stars | 1 |
| 1 star | 0 |
Widget CSS Classes gives you the ability to add custom classes and ids to your WordPress widgets
Please note that this plugin doesn’t enable you to enter custom CSS. You’ll need to edit your theme’s style.css or add another
plugin that allows you to input custom CSS.
This plugin also adds additional classes to widgets to help you style them easier:
Features
Plugin Website
Credits
The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.
You need to make sure you have an HTML element defined for before_widget and after_widget in your active theme’s register_sidebar functions,
usually located in your theme’s functions.php (/wp-content/themes/yourtheme/functions.php).
This HTML element must have class and id attributes. This plugin will not work if before_widget and after_widget are blank.
Example:
register_sidebar( array(
'name' => 'Sidebar',
There are two ways:
You can export the Settings from Settings > Widget CSS Classes > Import/Export.
Please file a bug report on GitHub.




Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads pixel code, and more.
#62 by installs
Import your demo content, widgets and theme settings with one click. Theme authors! Enable simple theme demo import for your users.
#130 by installs
The ultimate companion for OceanWP. Adds local Google Fonts, mega menus, site templates, and per-page settings for total design authority.
#146 by installs
Essential elements for modern websites. Add buttons, sliders, heroes, maps, images, carousels, features, icons, more. Create dynamic pages easily.
#163 by installs
The official companion plugin for Blocksy theme, packed with starter sites, extra features, and integrations.
Extend Elementor with 68+ widgets, 114 prebuilt demos, Mega Menu Builder, Theme Builder, and advanced interactive effects.
Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin. The author takes donations at their donate page.