开发者 | jp2112 |
---|---|
更新时间 | 2015年1月20日 20:35 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 3.9 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Go to Settings » Show Comment Policy and enter the text you want to see above the comment form. Make sure the "enabled" checkbox is checked. Note that the comment policy will only be displayed on pages/posts where the comments are open. If comments are closed, the policy will not appear. You may also includes shortcodes which will be processed for output.
Are you using another plugin that is also trying to use the comment_form_before hook? Is the page/post cached? Are comments open? The comment policy will only display if comments are actually open.
The comment policy text is wrapped in div tags with class name "scp-comment-policy". Use this class in your local stylesheet to style the output how you want.
Add this to your functions.php:
remove_action('admin_head', 'insert_scp_admin_css');