最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - How to remove custom style from source?

programmeradmin1浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

This 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.

发布评论

评论列表(0)

  1. 暂无评论