The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. duath
    Posted 2 years ago #

    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
    Posted 2 years 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
    Theme Author

    Posted 2 years ago #

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

  4. duath
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.