Add extra class to wp-caption?
Adapted from this answer Add this code to your functions.php file: add_action( ‘after_setup_theme’, ‘wpse_74735_replace_wp_caption_shortcode’ ); /** * Replace the default caption shortcode handler. * * @return void */ function wpse_74735_replace_wp_caption_shortcode() { remove_shortcode( ‘caption’, ‘img_caption_shortcode’ ); remove_shortcode( ‘wp_caption’, ‘img_caption_shortcode’ ); add_shortcode( ‘caption’, ‘wpse_74735_caption_shortcode’ ); add_shortcode( ‘wp_caption’, ‘wpse_74735_caption_shortcode’ ); } /** * Add the new class to … Read more