Forums

Disable comments for some pages (2 posts)

  1. Ihks
    Member
    Posted 3 years ago #

    For example, this page is supposed to be about the churchs youth work so comments are really not what I want to be here. So I deactivated it but it's bugging me that it still says "Comments for this page is disabled".

    I could prob get rid of it, but then it would go away from all pages, and that would be kinda bad beacuse for some pages it's cool to be able to comment.

    Help greatly appriciated!

    http://www.victorsvedberg.se/katolskakyrkan/?page_id=5

  2. Michael Fields
    Theme Wrangler
    Posted 3 years ago #

    Have you looked in your theme's "comments.php" file? In the WordPress default theme, you'll find the following conditional around line 52:

    <?php else : // this is displayed if there are no comments so far ?>
    
    	<?php if ('open' == $post->comment_status) : ?>
    		<!-- If comments are open, but there are no comments. -->
    
    	 <?php else : // comments are closed ?>
    		<!-- If comments are closed. -->
    		<p class="nocomments">Comments are closed.</p>
    
    	<?php endif; ?>
    <?php endif; ?>

    You can edit the line: "Comments are closed." to say whatever you would like - or nothing at all.

    I realize that you are not using the default theme on your site, so if this solution does not work for you, please let me know and I will do my best to help.

Topic Closed

This topic has been closed to new replies.

About this Topic