Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25886

    How to add Commends to pages loge posts

    I would like to add commend to pages, is it possible

    #128553

    Hi,

    If you are creating a normal page without using the Advance Layout Editor, edit 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 are using the Advance Layout Editor to create pages, edit template-builder.php, look for this code:

    //only close divs if the user didnt add fullwidth slider elements at the end. also skip sidebar if the last element is a slider
    if(!$last_el || !in_array($last_el['tag'], array('av_layerslider','av_slideshow_full', 'av_fullscreen') ) )
    {

    Below, add this code:

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

    Make sure that you enable the Discussion on the Screen Options, then check “Allow Comments”.

    Regards,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to add Commends to pages loge posts’ is closed to new replies.