Genesis Framework: Add Comment Policy Box
If you want to add a comment policy box when using the Genesis framework, use the snippet below:
<?php
add_action( 'genesis_after_comments', function () {
if ( is_single() && ! is_user_logged_in() && comments_open() ) {
?>
<div class="comment-policy-box">
<p class="comment-policy"><small><strong>Rules:</strong>Please follow the rules.</small></p>
</div>
<?php
}
} );
Related Posts
- Customize Search Box Placeholder Text Using Genesis Framework
- Modify Recipients in WordPress Comment Notification / Moderation Mails
- Modify Comment Link
- Prepare Genesis Framework to use with CSS Grid
- Add Footer Widgets When Using the Genesis Framework
- Use FacetWP in Combination With Genesis Framework