register_sidebar ignores ‘id’ and ‘class’

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.

Leave a Comment