If you fill class parameter to register_sidebar function then the class sidebar-{class name} gets added to the div of that sidebar in the back end.
For example if you register the sidebar using following code :
register_sidebar(
array(
'name' => __('Footer Widget One', 'wpbs-framework'),
'id' => 'footer-01',
'class' => 'testing',
'description' => __('The first footer area', 'wpbs-framework'),
'before_widget' => '<div class="footer-sidebar-widget">',
'after_widget' => '</div> <!-- end footer-sidebar-widget -->',
'before_title' => '<h4>',
'after_title' => '</h4>'
)
);
then in back end you will see the sidebar div having class ‘sidebar-testing’ as following
<div class="widgets-holder-wrap sidebar-testing">
Related Posts:
- Text Widget creates a
- Get sidebar parameters (before_widget, before_title, etc.) from within a widget
- Add div class to only one widget
- How to avoid widgets added to sidebar on theme activation?
- Hooking Into Widget Output Loop
- Why do none of my widgets have a title?
- Widget area inside a widget
- More flexible sidebar and widget management
- WordPress widget new instance creates content duplicates
- duplicate sidebar
- Removing custom widget area WordPress 4.4 [closed]
- Insert Widget option into mark-up with register_sidebar
- Widgets not expanding on wordpress 3.3 widget dashbord
- Cannot save widgets in custom sidebars
- wp_register_sidebar_widget() disappered my Widgets submenu – what am I doing wrong?
- Toggle option in sidebar widgets
- Can’t see widget areas in my customizer
- Widgets not activated alert after using get_sidebar()
- Can you target a widget_class in a register_sidebar?
- Copy Widget Settings because of changed IDs
- How to pass a special CSS class into widget li
- Add class to on sidebar widget
- Save button is not working on custom widget
- Sidebar widgets – dynamic CSS : problem with widget-title
- How to customize wordpress sidebar widget
- Why is registering a sidebar for each page causing my sidebars to reset?
- activate custom sidebar widgets
- How to use register_sidebar’s ‘before_widget’ unique id generator into its other parameters like ‘before_title’?
- After adding widget the style is messing up
- Siderbar implementation with collapsible bootstrap cards
- How to create sidebar from “scratch”?
- My widgets do not save
- How to get sidebar widgets in leftsidebar template
- How Can I Replicate & Register a Widget from the Child Theme
- Widget Areas Still Appearing in WP ADMIN When They Shouldn’t
- $before/after_widget/title not displaying anything
- register_sidebar() will not wrap an element properly
- An issue with register_sidebar and the admin interface
- Unique widget id in sidebar
- is it possible to create custom widgets page in admin?
- How can I use the built in WordPress “browse link” functionality?
- Modifying the default search widget
- How to build widget with arrays inside arrays?
- How do I save data from submitted form from widget
- How to use control_callback when creating a widget via functions.php or plugin?
- Disable default WordPress widgets in sidebar
- Problems with the sidebar args and wp_list_bookmarks
- Ban certain widgets from certain sidebars
- How to use jQuery on widget admin page
- jQuery does not work in widget backend
- Custom widget using get_categories select menu dropdown
- Elegantly using JavaScript on widget admin forms
- Widget queries even when there are no sidebars?
- How to hack recent comments default widget?
- Recent Posts widget without Title
- Pre-install widgets in WP-Admin
- How to change plugin`s template (view) correctly?
- How do I add a widget from an Android phone?
- Error gets thrown when calling require_once on widget.php
- How to create a widget that accepts html input?
- Widget changes in customizer ajax error to many options?
- How to Add TinyMCE to widget
- Dynamically add content to an existing widget area
- How do I create a widget to embed the code for a sign up form, so that the sign up form appears on every page?
- Tabs and Category Widget
- How to add the same widget twice?
- How to hide widget if current category has no posts assigned to it?
- Undefined Variable in my widget
- Update widget form after drag-and-drop “only specific plugin”
- Recent Comments from Specific Category Widget
- How to make widget appear conditionally
- Ampersand breaking Widget title
- How to allow editing of text in sidebar?
- Shortcode into widget
- How to show avatar of current logged in user in a widget
- Got a problem with a widget
- Widget control – putting a slideshow in the widget area
- How to update a widget data?
- custom widget not saved to sidebar
- Recently changed domain name. Home page widgets are now not in the customize menu yet still being on the page
- Is it possible to dynamically output the name of the widgets?
- How can I write this code snippet so that it echo’s the response when submitting empty fields?
- What is the difference between widget object and widget instance?
- Apply two different styles to Wiget Titles along with a decorative line
- Widget text color change
- Widget to embed youtube video
- How to make featured area?
- Checking if widget has title not working
- wp_list_categories + widget
- How can I add widgets to the category page?
- Disable wordpress widget automatically on error
- Can I add a widget to the of my site?
- Widget dynamically add new input field
- How do I stop out of stock items from appearing on my WooCommerce site when using the Layered Nav widget [closed]
- Single Widget Multi Sidebar
- page url in shortcode
- Widget on home page displays wrong time compared to same widget on inside pages
- Widgets in PHP files?
- Text Widget Not Working
- Sample widget code which get data(1-5 record) from Wp_Admin panel and display to Homepage(WordPress Custom Theme)