| 开发者 |
keraweb
elusivelight |
|---|---|
| 更新时间 | 2024年11月12日 08:16 |
| 捐献地址: | 去捐款 |
| PHP版本: | 5.2.4 及以上 |
| WordPress版本: | 6.7 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>'
) );
There are two ways:
You can export the Settings from Settings > Widget CSS Classes > Import/Export.
Please file a bug report on GitHub.
widget_content filter compatibility. #27widget_css_classes: modify all classes added by this plugin.widget_css_classes_custom: modify custom input classes.widget_css_classes_set_settings), overwrites user settings. #16widget_css_classes_default_settings). #4widget_css_classes_id_input_capability: ID inputwidget_css_classes_class_input_capability: classes inputwidget_css_classes_class_select_capability: predefined classes select (also hides classes input if invalid)