WordPress.org

Ready to get started?Download WordPress

Forums

Frontier
[resolved] How removing comments on Page or article ? (4 posts)

  1. duath
    Member
    Posted 7 months ago #

    Hello,
    I shall want to remove the possibility of adding comments on "Pages".
    I saw that it was possible for articles, in the section " option of discussion ".

    Is it necessary to modify the code? I read in another comment, than ill needed to remove the line:
    <? Php comments_template ();? >
    in the file loop-single.php
    But, if i understood well it is definitive and it applies to all the comments...
    Thanks for your suggestions

  2. kaniamea
    Member
    Posted 7 months ago #

    Correct, to remove the comments you can do this:
    First create a child theme of your Frontier theme http://codex.wordpress.org/Child_Themes

    Then add the loop-single.php file in your child folder and remove:

    <div id="comment-area"><?php comments_template(); ?></div>

    However, this will remove the comments from both pages and posts.

    To remove the comments from Pages only you can do:

    Go to Admin => Pages and mouse over page you wish to remove comments from. Click on the 'Quick Edit' link and uncheck 'Allow Comments' on the right.

    Hope this helps! :)

  3. ronangelo
    Member
    Theme Author

    Posted 7 months ago #

    – Go to Frontier Options -> Posts & Pages
    – Under Page Elements uncheck Comments.
    – Save.

  4. duath
    Member
    Posted 7 months ago #

    Thank you for your answers.
    Finally, I opted for the option proposed by Ron...
    Thank you again

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.