Created
October 29, 2013 12:42
-
-
Save shemul49rmc/7213936 to your computer and use it in GitHub Desktop.
Add Genesis Comment Form Above Comments
This file contains 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 Genesis Comment Form Above Comments*http://iamshemul.com/?p=2395*// | |
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