• I did a search here to find a solution but there are so many answers to the same questions and none seem to work.

    How do I remove “leave a reply” from posts.
    As well how do I remove the “no comments” link on the posts?

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter slinky005

    (@slinky005)

    That line is not on that page.

    if I understood the OP correctly, he wants to remove the comments link and leave a reply link associated with the post – not the template itself

    Thread Starter slinky005

    (@slinky005)

    Actually I want to remove “leave a reply, date and no comments”.

    post your home page template and main index template to the pastebin

    As Samuel suggests, index.php is increasingly looking to be the file of interest here.

    Thread Starter slinky005

    (@slinky005)

    What am I looking for given that that I don’t want “leave a reply, date and no comments”?

    Line 26 will remove the date,
    Line 27 will remove the ‘no comments yet’ section.

    As for leave a reply, have you turned off comments for that post? You can turn it off near the bottom of the edit page in the discussions panel.

    Thread Starter slinky005

    (@slinky005)

    Cirkut, thanks for the suggestions but none worked.
    In my reading settings I have “none” selected as my blog. It is set this way because with this particular theme it will not display the pages properly if something is selected as a blog page.
    Could this have something to do with it?

    if you delete line26 and 27 of single.php of your theme, as @cirkut suggested, then the line with the date and the ‘no comments yet’ will disappear – unless you are editing the wrong theme/file, and/or not saving your edits. (full stop)
    (or you may have a very stubborn cache installed)

    double check what you are editing.

    are you using the ‘dashboard’ ‘appearance’ ‘editor’ ?
    or how are you editing your theme files?
    if you edit locally on your computer, make sure the edited files are uploaded into the active theme folder on the server.

    Thread Starter slinky005

    (@slinky005)

    Yes I am using the appearance editor. I am indeed saving the changes.
    Is is not done locally.
    I am checking on another computer to make sure there are no cache issues.

    This is what I deleted in the index.php :

    | <?php the_category(‘, ‘); ?></span>
    <span class=”comment_number”><?php comments_popup_link(‘No comments yet’, ‘1 Comment ?’, ‘% Comments ?’); ?></span>

    As well (and this is my primary issue) I cannot get the “leave a reply” section to dissappear. I have nothing checked in the discussion settings.
    There is no checkbox for “leave a reply”.

    for anything to do with single posts, edit single.php – i.e. the template that you pasted to https://pastebin.com/2C8DwiaK

    what to try, has already been suggested by @spankmarvin:

    What happens if you delete lines 45-47?

    referring to this code section:

    <div id="comments">
       <?php comments_template(); ?>
    </div>

    and by @cirkut:

    Line 26 will remove the date,
    Line 27 will remove the ‘no comments yet’ section.

    referring to this section:

    <span class="article_info"><?php the_time('M j, Y') ?>  |  <?php the_category(', '); ?></span>
    <span class="comment_number"><?php comments_popup_link('No comments yet', '1 Comment ?', '% Comments ?'); ?></span>

    Thread Starter slinky005

    (@slinky005)

    alchymyth that did it.
    Thanks so much.

    great, you got this sorted.

    however, don’t thank me – thank @samuel B and @spankmarvin who suggested the solution 6 days ago ??

    I was trying to follow this but none of the code is working in mine. Any ideas? https://test.worryfreeclaims.com/works
    I’m not using this site as a blog, so it doesn’t make sense to have comments. Thanks!

    Please post a new topic.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Remove Leave a Reply etc.’ is closed to new replies.