Private: Home › Forums › WordPress Themes › Elvyre – Retina Ready WordPress Theme › how to remove the "commets are closed"? › Reply To: how to remove the "commets are closed"?
October 21, 2014 at 7:58 pm
#804
Participant
Hello,
The simplest solution which will hide this text would be to add the following CSS code to the “Elvyre options -> Appearance – Custom CSS box”:
p.nocomments {
display: none !important;
}
Another solution is to remove this text from the php file. The file you need to edit is located in wp-content/themes/elvyre/ and is called comments.php. Open it in any editor and search for the following code (at about line 40):
<?php
elseif (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) :
?>
<p class="nocomments"><?php _e('Comments are closed.', 'pi_framework'); ?></p>
When you find it, just simply delete the block as I’ve posted above.
The text “Comments are closed” shouldn’t be displayed anymore.
Robert