• slinky005

    (@slinky005)


    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 - 1 through 15 (of 30 total)
  • Samuel B

    (@samboll)

    without knowing the theme…
    normally the code you are looking for is in theme’s index.php

    SpankMarvin

    (@spankmarvin)

    In single.php, there should be a line of code that refers to comments_template()

    Comment this out or delete it.

    Samuel B

    (@samboll)

    commenting out the comments template does not do away with the “leave a reply”, etc.

    Thread Starter slinky005

    (@slinky005)

    Though I do appreciate the help here I’m confused. Two people are telling me two different things.
    What does “comment this out” mean?
    If I’m looking in the index.php, what am I looking for?
    When you say “without knowing the theme…” is there any way I give you more info to get me further along?

    And if these questions weren’t enough – how do I remove the date, category and no comments yet? http://www.teentourtheatre.com/?p=15

    Sorry for the newbie questions but I’m really trying hard here….

    SpankMarvin

    (@spankmarvin)

    I’m sorry, but I don’t see how comments_template cannot refer to the “Leave a reply” part of the template. A theme will generally call comments_template in the comments.php file of the theme. This function calls the comment_form function in wp-includes. Which, unless I’m overlooking something, builds all the “Leave a reply” stuff.

    slinky005, do you have a loop-single.php file, or a single.php file?

    Samuel B

    (@samboll)

    without knowing the theme…

    Thread Starter slinky005

    (@slinky005)

    Thread Starter slinky005

    (@slinky005)

    slinky005, do you have a loop-single.php file, or a single.php file?

    Yes I have a single.php

    Here’s the all of them:

    404 Template
    Comments
    Contact_Page Page Template
    Footer
    Header
    Home_Page Page Template
    Main Index Template
    Page Template
    Portfolio_Page Page Template
    Search Form
    Sidebar
    Single Post
    Theme Functions
    breadcrumbs.php
    style .css

    SpankMarvin

    (@spankmarvin)

    Can you paste the contents to http://wordpress.pastebin.com/ and supply a link, for the single.php file?

    Thread Starter slinky005

    (@slinky005)

    Contents pasted.
    Why supply a link?

    SpankMarvin

    (@spankmarvin)

    I can’t see the code without knowing where to look 😉

    I mean, a link to the code you pasted.

    Thread Starter slinky005

    (@slinky005)

    SpankMarvin

    (@spankmarvin)

    What happens if you delete lines 45-47?

    Thread Starter slinky005

    (@slinky005)

    No change.

    SpankMarvin

    (@spankmarvin)

    try deleting the same php code from the page template?

Viewing 15 replies - 1 through 15 (of 30 total)

The topic ‘Remove Leave a Reply etc.’ is closed to new replies.