Should use widgets in this case?
The general concept on dynamic sidebars Basically WP loops through the global $wp_registered_widgets and builds the widget depending on it’s arguments. You can intercept them easily: Use a filter You can use the dynamic_sidebar_params to add a class to target specific widgets: // SHOW the params for better insights function wpse44903_dump_sidebar_params( $params ) { echo … Read more