Skip to content

Instantly share code, notes, and snippets.

Created June 28, 2017 07:10
What would you like to do?
Add A Comment Policy Box in Genesis
//* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment