wordpress snippets last updated   : September 29, 2014
we now have 639 snippets

Remove recent comments wp_head CSS

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the CSS added to the header for the recent comments widget.

snippet :  PHPcopy
function remove_recent_comments_style() {
    global $wp_widget_factory;
    remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));
}
add_action('widgets_init', 'remove_recent_comments_style');
source →

Did you like this post? If so please share it with your friends. Thanks!

  • Gökhan Ünal

    thx

jqsnipp.com | we just launched jquery snippets website