- elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
- ?>
- <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyeleven' ); ?></p>
- <?php endif; ?>
+ if ( ! comments_open() && get_comments_number() ) : ?>
+ <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyeleven' ); ?></p>
+ <?php endif; ?>
+
+ <?php endif; // have_comments() ?>