Skip to content

Instantly share code, notes, and snippets.

@nutsandbolts
Created November 19, 2013 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nutsandbolts/7538884 to your computer and use it in GitHub Desktop.
Save nutsandbolts/7538884 to your computer and use it in GitHub Desktop.
Move comment box above the comments list (Genesis)
add_action( 'genesis_before_comments' , 'nabm_post_check' );
function nabm_post_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 );
}
}
}
@Alamgir-Hossain-web
Copy link

Thanks for sharing your code. It's a unique code for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment