Created
October 29, 2013 12:24
-
-
Save shemul49rmc/7213700 to your computer and use it in GitHub Desktop.
Add a Comment Policy Box Before Comment Form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Add a comment policy box in comments*http://iamshemul.com/?p=2395*// | |
add_action( 'genesis_after_comments', 'sp_comment_policy' ); | |
function sp_comment_policy() { | |
if ( is_single() && !is_user_logged_in() && comments_open() ) { | |
?> | |
<div class="comment-policy-box"> | |
<p class="comment-policy"><small><strong>Comment Policy:</strong>Your Comments describes you, so be nice and helpful. Please, only use your real name and Valid Email Address. All Comments are moderated, Spam Comments are deleted and IP blocked.</small></p> | |
</div> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment