Created
June 28, 2017 07:10
-
-
Save topleague/1e8c81b390847126b0178cbe01d7dc76 to your computer and use it in GitHub Desktop.
Add A Comment Policy Box in Genesis
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 | |
add_action( 'genesis_after_comments', 'topleague_comment_policy' ); | |
function topleague_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>Zero tolerance for spammy comments.</small></p> | |
</div> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment