• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2551

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Register
  • Videos
  • Log in

Add Comment Form Before Loop On Single Posts

This PHP code enables you to an extra comment form before the loop on single posts.

This post includes the code that works with any theme and Genesis specific code.

Here’s where it outputs using the Executive Pro child theme by StudioPress for testing.

comment form before loop

Genesis Comment Form

Here’s the code that works with Genesis

If you’re really keen, you could also use the genesis_before_sidebar_widget_area hook and display your comment form in your sidebar. Might help increase comments as well.

WordPress Comment Form

And here’s the code that works with any theme as it uses a WordPress hook and WordPress template tag for the comment form.

Related Tutorials

  • Add Comment Form Shortcode Between Content Area Text of Post or Page

Primary Sidebar

How it works :

I write tutorials for you which include the custom code you need for a flat $49.99 fee. You get 1 tutorial request as well as access to all 2500+ existing tutorials for 1 month.

  • Premium Members Only
  • Access Premium Tutorials
  • Support