Tagged: , , ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1421

    Is there a way for me to disable the “Comments Off’ button that is visible on posts? I would also like to remove the “Comments are closed” tag at the bottom on the post. Thanks!

    #35138

    Comments Off

    You can remove the “No Comments” link on posts by editing a few files: search.php (line 46), single.php (51), and template_blog.php (65) by removing the string “No Comments” and having a blank string passed in, like this:

    <span class="comments"><?php comments_popup_link(__('','cleancut'), __('1 Comment','cleancut'), __('% Comments','cleancut')); ?></span>

    Comments Are Closed

    You can edit line 36 of comments.php (found in /wp-content/themes/cleancut/) and either change the output to say something other than “Comments are closed” or Just remove the whole line.

    #35139

    Noah,

    Thanks for the reply.

    Comments Off – I entered in your blank string in all three locations and am still seeing the “Comments Off” button. Any other ideas?

    Comments are Closed – Worked like a charm. Thanks!

    #35140
    #35141

    So is that code posted by Fox7 what I need? If so, where do I insert it? Am I replacing anything or just adding it on?

    I was able to get the “Comments are closed” text to go away… The issue now is the “Comments Off” button.

    Thanks.

    #35142

    In single.php please replace:

    <span class="comments"><?php comments_popup_link(__('No Comments','cleancut'), __('1 Comment','cleancut'), __('% Comments','cleancut')); ?></span>

    with

    <?php if ( comments_open() ) : ?>
    <span class="comments"><?php comments_popup_link(__('No Comments','cleancut'), __('1 Comment','cleancut'), __('% Comments','cleancut')); ?></span>
    <?php endif; ?>

    The Dude

    #35143

    Dude – You rock!

    I inserted that last code in single.php and template_blog.php and it cleared it right up. Thanks!!

    #35144

    Glad that I could help you.

    #35145

    @Support Staff: You guys are awesome!!!!

    I was having exactly the same issue as AirRocker and was able to solve it thanks to your help on this topic!

    (… And I didn’t even have to ask you to direct me to the right place this time! Is that progress or what???? :D

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Comments Off’ is closed to new replies.