Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reposition Genesis Comment Form
<?php
// Reposition Genesis Comment Form
add_action( 'genesis_before_comments' , 'wps_post_type_check' );
function wps_post_type_check () {
if ( is_single() ) {
if ( have_comments() ) {
remove_action( 'genesis_comment_form', 'genesis_do_comment_form' );
add_action( 'genesis_list_comments', 'genesis_do_comment_form' , 5 );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment