I’d like to move the blog post comment box to directly below my individual blog posts, rather than being placed after the Related Posts widget. How can I change the order of these two items? (I’m not a coder, but if code is needed, I do have a child theme set up–I’d just need very explicit instructions.)
You will need to overwrite the “single.php” to perform the update.
Please create the child theme, copy “single.php” file in the newly created child theme and then update the sequence of the sections as per the requirement.
Thanks very much! I have a child theme and I see the comments section of single.php, but I’m not a coder and I’m afraid to modify the code without more instruction. Can you tell me exactly which code I should move, and exactly where I should put it to place the comments above the Related Posts widget?
For example, I tried moving the following code:
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; ?>
I placed it immediately before:
do_action( 'blog_way_related_post' );
However, that turned the Related Posts widget into code!
Oh, wait! I think I figured it out–that “endwhile” shouldn’t have been included. So I moved the following code:
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
I placed it above
do_action( 'blog_way_related_post' );
I also got rid of four line breaks. Now the comments are where they should be. Thank you!