• Hi all,
    There’s this form in my WP website (where it allows users to post comments), that appears in three of the pages. I want to delete this page. But don’t know how to.

    I tried deleting the entire page. But again once i create a new page, this form displays. Any idea why?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ll either have to go into the post/page templates and comment out the line that makes the forms appear. Look for something like this:

    <?php
    comments_template();
    ?>

    You can also turn off comments in the WP admin (edit each individual post and uncheck “Allow comments” under Discussion), but then you may see a piece of text “COMMENTS ARE CLOSED” instead of the form.

    Thread Starter Dhan6298

    (@dhan6298)

    Hi,

    You mean to edit that coding from the page where it appears?

    Thread Starter Dhan6298

    (@dhan6298)

    I found something like this in the page template

    <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <?php
    // If comments are open or we have at least one comment, load up the comment template
    if ( comments_open() || ‘0’ != get_comments_number() )
    comments_template();
    ?>

    <?php endwhile; // end of the loop. ?>

    </main><!– #main –>
    </div><!– #primary –>

    Please let me know what to edit

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get rid of a form’ is closed to new replies.