• Resolved sahaara

    (@sahaara)


    Comment form is being displayed even when comments are closed.
    Form should be displayed only when comment-status is open.What are the changes that should be done in the code of comments.php ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • <?php if ( comments_open() ) : ?>
    		<!-- 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>
    Thread Starter sahaara

    (@sahaara)

    ok.thanq

    Comments are being closed on my site but “comments are closed” notification is not being displayed. What should I do?

    @gouri

    I know my response is late, but just in case you’ve checked the “Notify me of followup posts via e-mail” option, you might want to check if the theme contains code that conditionally displays the “comments are closed” notification. If you can post the name of the theme you are using, we can look it up for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Do not display comment form if comments are closed’ is closed to new replies.