i use latest wordpressversion and in source file of site i found that code:
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
I did not find it in theme files. how can i remove it from source?
i use latest wordpressversion and in source file of site i found that code:
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
I did not find it in theme files. how can i remove it from source?
Share Improve this question asked Dec 25, 2017 at 14:02 vangogh94vangogh94 493 bronze badges1 Answer
Reset to default 1This issue has been around at least since 2010. Though you can override the style in other ways, the easiest way (other than avoiding use of the Recent Comments Widget) just to remove it is to add the following code to your functions.php file:
add_filter( 'show_recent_comments_widget_style', '__return_false', 99 );
see: https://core.trac.wordpress/ticket/11928#comment:11
Tested and works.