- This topic has 3 replies, 2 voices, and was last updated 6 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support › Forums › Flex Theme › Comments
Tagged: comments
***backup before making changes
***I have not tested the following code
Add following code at the end of functions.php file
// Reposition Genesis Comment Form
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 );
}
}
}
Source – http://wpspeak.com/reposition-genesis-comment-form/
It worked a treat!!! Great job as always!!!
yes, thanks. i foolishly added the code from you email – and it broke the site. The comments look great now so I am very happy.