Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Created September 30, 2013 14:55
Show Gist options
  • Save RhythmShahriar/6764996 to your computer and use it in GitHub Desktop.
Save RhythmShahriar/6764996 to your computer and use it in GitHub Desktop.
<?php
/**-------------------------------------------
* @package Genesis Comment Section
* @link http://rhythmshahriar.com
* @author Rhythm <rhy@rhythmshahriar.com>
* @copyright Copyright (c) 2013, Rhythm Shahriar
-------------------------------------------------*/
/** Add a comment policy box */
add_action( 'genesis_after_comments', 'single_post_comment_policy' );
function single_post_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 Comment Policy Goes Here.</small></p>
</div>
<?php
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment