How to add a comments section into a page

Hi I need to add a comments section into a cornerstone page but there is no Element under the menu for this. How would I do it?
Cheers Michael

Hi Michael,

You have to setup a child theme first:

After that adding this custom code under functions.php file locates in your child theme:

add_action( 'x_after_the_content_end', 'add_comment_template_pages' );
function add_comment_template_pages(){
  if( is_page_template( 'template-blank-1.php' ) || is_page_template( 'template-blank-2.php' ) || is_page_template( 'template-blank-3.php' ) || is_page_template( 'template-blank-4.php' ) || is_page_template( 'template-blank-5.php' ) || is_page_template( 'template-blank-6.php' ) ||is_page_template( 'template-blank-7.php' ) || is_page_template( 'template-blank-8.php' ) ){
    x_get_view( 'global', '_comments-template' );
  }
}

Hope it helps :slight_smile:

Thats great I’ll give it a try. Cheers

Let us know how this goes!

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.