WidgetOptions / widget-options

Additional Widget options for better widget control. Available on
https://widget-options.com/
GNU General Public License v3.0
34 stars 16 forks source link

Stop plugin from adding class .widget to widgets ... #26

Closed MennovanderKrift closed 7 years ago

MennovanderKrift commented 7 years ago

The plugin adds the class .widget to all of my widgets, which is getting picked up by the theme and is applying additional CSS that I don’t need. How do I remove the class .widget from my widgets? Why is this even on by default? Because this might be confusing for people that don’t even notice the additional class.

phpbits commented 7 years ago

Hi,

Thank you very much for choosing Widget Options! Regarding your concern, adding .widget class should be default and required for WordPress standard templating. Since the theme you are using isn't following the standard, you have to edit the plugin file here : https://github.com/phpbits/widget-options/blob/master/includes/widgets/display.php and comment out line 325. I'll be adding option on the next release to avoid editing the file ;) Let me know how it goes. Thanks!

Cheers, Jeffrey

phpbits commented 7 years ago

Hello again @MennovanderKrift

I've added an option under Settings > Widget Options and on Classes & ID card you'll get checkbox to disable .widget class addition. Please download the version fix here : https://github.com/phpbits/widget-options/tree/develop and let me know how it goes. Thanks!

Cheers, Jeffrey