To customize the text that is used for the comment link in the post info or post meta, simply place the code below into your child theme’s functions.php file:
/** Modify the comment link text */
add_filter( 'genesis_post_meta', 'post_meta_filter' );
function post_meta_filter( $post_meta ) {
return '[post_comments zero="Leave a Comment" one="1 Comment" more="% Comments"]';
}
To customize the “Comments” headline text, simply place the code below to your child theme’s functions.php file. Note that ‘Discussion’ is where you can select the text to modify.
/** Modify comments header text in comments */
add_filter( 'genesis_title_comments', 'custom_genesis_title_comments' );
function custom_genesis_title_comments() {
$title = '<h3>Discussion</h3>';
return $title;
}
To customize the “Trackbacks” headline text, simply place the code below to your child theme’s functions.php file. Note that ‘Pings’ is where you can select the text to modify.
/** Modify trackbacks header text in comments */
add_filter( 'genesis_title_pings', 'custom_title_pings' );
function custom_title_pings() {
echo '<h3>Pings</h3>';
}
To customize the “Speak Your Mind” text, simply place the code below to your child theme’s functions.php file. Note that ‘Leave a Comment’ is where you can select the text to modify.
/** Modify the speak your mind text */
add_filter( 'genesis_comment_form_args', 'custom_comment_form_args' );
function custom_comment_form_args($args) {
$args['title_reply'] = 'Leave a Comment';
return $args;
}
/** Modify the comment says text */
add_filter( 'comment_author_says_text', 'custom_comment_author_says_text' );
function custom_comment_author_says_text() {
return 'commented';
}
To add a comment policy box or text to your comments, simply place the code below into your child theme’s functions.php file.
/** 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 words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.</small></p>
</div>
<?php
}
}