Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27084

    I would like to enable comments on pages other than my blog. How do I do this? I tried turning them on with the discussion but nothing changed. Please provide advice.

    #132712

    Hi,

    If you’re not using the Advance Layout Editor(ALE), open page.php then find this code:

    $avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
    get_template_part( 'includes/loop', 'page' );

    Below, add this code:

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    If you’re using the ALE to build the page, edit template-builder.php then find this code

    echo $content;

    Below, add the comment code again:

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    Regards,

    Ismael

    #132713

    I am using the ALE and when I added this, it took down my whole site and said server error. When I remove that line of code, everything is just fine.

    #132714

    Hi indy1003,

    It was a missed / in Ismaels original code which I’ve now corrected. So give it a try now:

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Enable Comment on Pages’ is closed to new replies.