Title: Not adding the custom class
Last modified: March 13, 2017

---

# Not adding the custom class

 *  [zietbukuel](https://wordpress.org/support/users/zietbukuel/)
 * (@zietbukuel)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/)
 * Tried adding custom classes but it does not work, it does add widget-# and other
   classes, but not the one I enter. Needs some work.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9242975)
 * Hi [@zietbukuel](https://wordpress.org/support/users/zietbukuel/),
 * Please review one of the FAQ:
 * **Why aren’t the classes showing up in my widget?**
 * > 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 Name',
   >         'before_widget' => '',
   >         'after_widget' => '',
   >         'before_title' => '',
   >         'after_title' => ''
   >     ) );
   >     ```
   > 
 * Let me know if this helps, I can also take a look, please provide me a link and
   the theme/widgets you are using.
 * Thanks, Jory
 *  Thread Starter [zietbukuel](https://wordpress.org/support/users/zietbukuel/)
 * (@zietbukuel)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9243231)
 * Yeah, got it, but then it means it isn’t compatible with the Avada theme, which
   is one of the most popular ones 🙁
 * Thanks for answering.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9243767)
 * Hi [@zietbukuel](https://wordpress.org/support/users/zietbukuel/),
 * Currently I’m busy with a next release (just became a contributor) that also 
   includes an option to let this plugin fix problems with the sidebar parameters.
 * I have a copy of Avada myself and will test it a.s.a.p.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9244177)
 * Hi [@zietbukuel](https://wordpress.org/support/users/zietbukuel/),
 * I just tested several WP core and Avada widgets in several sidebars locations
   and they all work fine here.
    Avada version: 5.1.6
 * Are you using a custom sidebar?
    Or maybe third party widgets? Could you show
   me your configuration somehow? (screenshot or anything)
 * Let me know!
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9385515)
 * Hi [@zietbukuel](https://wordpress.org/support/users/zietbukuel/),
 * Did you manage to find where this plugin isn’t working? I’d like to tackle this
   if it is a bug 🙂
 * Thanks, Jory
 *  Thread Starter [zietbukuel](https://wordpress.org/support/users/zietbukuel/)
 * (@zietbukuel)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9385980)
 * I simply tried to add a class to a widget using the latest avada theme. The class
   is not added at all. Maybe it’s just not compatible. Other than that I don’t 
   remember if it was a custom widget or not, this issue was like 4 months ago 🙂
 * Thanks.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9387348)
 * That would be weird since I’ve tried the same thing with Avada and it worked 
   fine. I also checked the Avada codebase for sidebars and these are all fully 
   compatible with this plugin.
    That is the reason I think it was a custom widget
   or maybe a different plugin or addon for extra widgets.
 * I understand this issue was 4 months ago and sorry for the late reply, I only
   became an official contributor for a month now.
    I am working on removing all
   possible bugs and very mutch like to find the issue so I can improve this plugin
   more and with also that help you with your issue. Let me know if you are able
   to reproduce the issue.
 * Thanks, Jory

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Not adding the custom class’ is closed to new replies.

 * ![](https://ps.w.org/widget-css-classes/assets/icon-256x256.jpg?rev=1130657)
 * [Widget CSS Classes](https://wordpress.org/plugins/widget-css-classes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-css-classes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-css-classes/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-css-classes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-css-classes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-css-classes/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/not-adding-the-custom-class/#post-9387348)