Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ll want to look at your theme’s index.php file and remove the code that displays that information.

    If you are going to continue to modify your theme you want to review Template_Hierarchy, Stepping_Into_Templates, and Stepping_Into_Template_Tags.

    I’m also moving this to the How-to forum.

    I’m also attempting to achieve the same thing, but haven’t found it in index.php. Rather, it’s in /theme/comments.php. The offending bit of code appears to be:

    <h2 class="contenttitle"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h2>

    I’m sure I could blank out “no responses”, but I’d obviously wind up going from “No responses to post title” to “to post title”; not good. Without removing the comment line universally across the entire blog, is there a simpler way to only remove that line (1) on posts, and (2) when comments are disabled? I’d even settle for (1) on posts and (2) when there are zero comments.

    As a suggestion, it sure would be nice if this were done automatically. As it stands now, building a FAQ using the pages yields somewhat awkward results.

    I’m sure I could blank out “no responses”, but I’d obviously wind up going from “No responses to post title” to “to post title”;

    Not true. If you remove the entire line, then you won’t see anything. If you only remove the “comment” section, then you will be left with “post title”.

    is there a simpler way to only remove that line (1) on posts, and (2) when comments are disabled?

    Look at the default theme, There’s already code there you can “steal” to accomplish just this.

    only remove that line (1) on posts

    <?php if (is_single()) { } else {?>
    <h2 class="contenttitle"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h2>
    <?php } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing Comment references from posts/ home page’ is closed to new replies.