我使用最新的wordpressversion,在网站的源文件中,我发现了以下代码:
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
我没有在主题文件中找到它。如何从源代码中删除它?我使用最新的wordpressversion,在网站的源文件中,我发现了以下代码:
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
我没有在主题文件中找到它。如何从源代码中删除它?这一问题至少自2010年以来就一直存在。虽然您可以用其他方式覆盖样式,但要删除它,最简单的方法(除了避免使用最近的注释小部件)就是向函数中添加以下代码。php文件:
add_filter( \'show_recent_comments_widget_style\', \'__return_false\', 99 );
已测试并正常工作。
我插入the following code, 请参见下文,从前端提交帖子。提交时,会出现以下警告:警告:array\\u filter()要求参数1为数组,字符串在[…]中给出/wp包括/后。php在线3148我不知道警告来自哪里,哪个数组是字符串?function ty_front_end_form() { ?> <form id=\"custom-post-type\" name=\"custom-post-type\" method=\"post