Last active
December 14, 2018 09:26
-
-
Save vfontjr/78de6e0ef54256830c4e31ad52567f30 to your computer and use it in GitHub Desktop.
Move Comments Below Comment Form in Genesis
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
<?php | |
add_action( 'genesis_before_comments' , 'move_comments_below_form' ); | |
function move_comments_below_form() | |
{ | |
if ( is_single() && have_comments() ) { | |
remove_action( 'genesis_comment_form', 'genesis_do_comment_form' ); | |
add_action( 'genesis_comments', 'genesis_do_comment_form', 5 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment