Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #15267
    klhaight
    Participant

    Hi. I want to keep comments on my posts but I don’t want the comment count showing on the top of my post, under the title and next to the date. How do I remove this (for all posts)?

    Thanks.
    Kristi
    http://www.chatfieldcourt.com

    #15307
    klhaight
    Participant

    Ok, so I managed to remove the comment count under my blog’s post title. I still, however have a dash mark next to my name (as shown here)

    Posted on Friday,September 27, 2013 by Kristi —

    How do I get rid of it?

    Thanks.

    #15313
    Sakin
    Keymaster

    @klhaight: You need to build child theme and then copy content-single.php in your child theme and remove the line

    <?php if ( comments_open() && ! post_password_required() ) : ?>
      <span class="sep"> &mdash; </span>
      <span class="comments-link">
    	  <?php comments_popup_link(__('No Comments &darr;', 'catchbox'), __('1 Comment &darr;', 'catchbox'), __('% Comments &darr;', 'catchbox')); ?>
      </span>
    <?php endif; ?>
    #15338
    klhaight
    Participant

    I already have a child theme and I did what you said but nothing changed.

    #15340
    Sakin
    Keymaster

    @klhaight: I just check in my test site. You need to copy content.php and content-single.php and then remove the comment code.

    #15354
    klhaight
    Participant

    I copied both, Sakin, and nothing has changed.

    #15381
    Sakin
    Keymaster

    @klhaight: You need to edit the code after you copy it. Ok I will email you and then I can get the code in your server.

    #15407
    klhaight
    Participant

    I did edit after I copied it. Email is [email protected]

    #15432
    Sakin
    Keymaster

    @klhaight:: I have just emailed you.

    #15449
    Sakin
    Keymaster

    @klhaight: I see that you are adding everything is style.css of child theme. style.css is only for css styles. So, I have created new child theme with style.css, content.php and content-single.php

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘remove comment count by post title and date’ is closed to new replies.