WPIntell

Source evidence

Not adding the custom class

Widget CSS Classes · review · 2017-03-13T23:57:00+00:00

complaintsentiment
mediumseverity
0.93relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 25 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

review · 2 stars
zietbukuel unresolved
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. Hi @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 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. Hi @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. Hi @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! Hi @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 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. 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

Comments

7 shown
Jory Hogeveen 2017-06-20T00:07:00+00:00

Hi @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

zietbukuel 2017-06-20T03:31:00+00:00

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.

Jory Hogeveen 2017-06-20T08:11:00+00:00

Hi @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.

Jory Hogeveen 2017-06-20T10:18:00+00:00

Hi @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!

Jory Hogeveen 2017-08-06T15:12:00+00:00

Hi @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

zietbukuel 2017-08-06T20:39:00+00:00

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.

Jory Hogeveen 2017-08-07T11:39:00+00:00

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