• Resolved nicolasrodi

    (@nicolasrodi)


    Hi,
    I would like to add comment on this page that is a blank template. I select Discussion, and Comment in the screen options, but nothing appears afterwards.
    Can you help me?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • The screen options are for selecting which metaboxes show. The Discussion metabox itself has the option for allowing comments on that particular page.

    If the page is unpublished, you won’t see the Comments option in Screen Options. It is there when the page is published. The Comment metabox is for moderating the comments on that page.

    The screen options should be saved per user, so setting them once in a published page should make it so you see that each time you are in the editor.
    Be aware that the Screen Options interface is different for the Classic Editor and the block editor.

    Thread Starter nicolasrodi

    (@nicolasrodi)

    Yes, I checked the metaboxes, but nothing appears on my published page. What am I not understanding?

    what is the code of the loop in that custom page template?

    does the code call comments_template() anywhere?

    Thread Starter nicolasrodi

    (@nicolasrodi)

    A part of the code:

    <?php
    if ( ! $is_page_builder_used && comments_open() && ‘on’ === et_get_option( ‘divi_show_pagescomments’, ‘false’ ) ) comments_template( ”, true );
    ?>

    Should it work with that?

    Should it work with that?

    depends on the conditions…

    try without the conditional stuff, just use;

    <?php comments_template( '', true ); ?>

    Thread Starter nicolasrodi

    (@nicolasrodi)

    By the way, it just appeared after night…?!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Allow comments on blank template’ is closed to new replies.