Created
November 19, 2013 01:49
-
-
Save nutsandbolts/7538884 to your computer and use it in GitHub Desktop.
Move comment box above the comments list (Genesis)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing your code. It's a unique code for me.