The id parameter in register_sidebar is not directly related to the html output. It is used to identify each sidebar when the $widget_object is built.
The class should be added to the before_widget markup.
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/widgets.php#L1128 is where the class gets parsed.
Related Posts:
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Should I use set_transient or update_option?
- HowTo: Add Class to Sidebar Widget List-Items
- Adding WordPress colorpicker in widget settings
- How to add multiple custom widget areas
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- Is it a good idea to make whole theme widgetized?
- How i can get widgets areas working in customizer?
- Widget Option is Missing
- Is it acceptable for a WordPress theme to not accept widgets?
- Register sidebar ‘before’ and ‘after’ html as div rather than li tags
- How can I hard code my sidebar?
- How to hide custom sidebar on mobile
- Text widget is placing everything side by side. I want to post it above
- Create new sidebars trough admin post/page metabox
- Best strategy for providing theme options using customizer
- What’s the policy for building a theme that doesn’t support widgets/menus?
- Sizing screenshot.png without losing aspect ratio
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Call dynamic_sidebar but include/exclude named widgets?
- Page template in two level deep folder
- Automatic Updates For Private And Commercial Themes?
- What can I hook into after_setup_theme?
- How to get the registered sidebar’s name by its id?
- add_image_size is scaling, even though crop is set to true
- How to check if post has any tag?
- Adding inline styles from a widget
- How to use bloginfo( ‘template_directory’ ) in array
- Should I update my _s theme?
- Setting a Default ‘Theme Location’ When Creating a Menu
- How to set page template on front using starter content?
- Different Admin Theme – Based on Role?
- Finding Page Template and Displaying Content
- Override Constants in Child theme
- Add tinymce to widget textareas
- How to correctly add JQuery in a WP theme?
- how to change a theme slug
- Same theme name issue with wordpress repository theme
- Removing feeds from header using a function?
- adding multiple sidebars on pages
- I want to get the home root path
- How to add code in the content area in a WordPress theme?
- How to add theme support?
- Translation Issue with WordPress Theme Check in comment_form function
- Theme translation not applying
- Using esc_url with a hard coded url
- Broken template went invisible
- Can I have a widget and sidebars in custom theme?
- WordPress theme switcher
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- WP_bootstrap_Navwalker_issue [closed]
- Font Awesome 5 Free – far working but fas is not? [closed]
- correct tags for validating input types
- Renaming a theme so it aids SEO and the theme used is hidden
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- Theme thumbnail in dashboard
- How to change the theme directory uri for localhost?
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- featured content: which area does this cover [closed]
- Which cache is kicking
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- Is there a way to switch to another theme?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Allow different tags in widget titles
- When trying to set title, not sure how to edit it for different pages
- Post archives link yields a 404 Not Found
- Get video from the post on homepage
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- WordPress Themes Directory: Template which hits the standards?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- Any way to change/add to the theme name dynamically?
- Available widgets is not showing up?
- Let user to upload multiple time
- How to make menus, footer, sidebars multi language
- Different WP Rest API custom endpoints across different themes
- Get property of non-object on theme activation
- register_theme_directory() sees custom themes directory, but blank frontend
- Display problems in admin dashboard when creating a new theme from scratch
- wp_editor some functionality not working on custom theme
- How to create multiple pages in a client theme?
- Using Customizer value in an external PHP file inside a theme
- Import from HubSpot COS into WordPress 4?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- Theme automatically inserting “more” tag on every post
- How get the 10 most viewed pages (not post)
- WordPress widgets manager option for emulating theme layout
- Using wp_enqueue_script with social media buttons?
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Image Size wrong during upload
- How to create full header but keep content narrow
- Correct way to make a custom block theme responsive
- What is the point of using the front-page.php template? [closed]