Skip to content

Instantly share code, notes, and snippets.

@shemul49rmc
Created October 29, 2013 12:42
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 shemul49rmc/7213936 to your computer and use it in GitHub Desktop.
Save shemul49rmc/7213936 to your computer and use it in GitHub Desktop.
Add Genesis Comment Form Above Comments
//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