Support » Themes and Templates » Taking comments off the front and category pages

  • Resolved natalieben


    I’m using the Old School theme for, which I’ve already modified a fair bit using my basic CSS knowledge. But I’m stumped on how to take all reference to the comments off the front and category pages.

    I want to lose the bit about “What do you think? Have I got it right? Click here to leave your views – 0 Comments ” but to leave it on the post pages.

    All help most gratefully received. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You should look in the index.php file of the theme to delete or comment out those line.
    May I suggest something else, too? I’d create a Page template (see > Pages#Page_Templates) in order to avoid the appearence of the comment box on Pages. It looks ugly.

    Thanks, the pages suggestion is a good one I’m about to implement.

    But I can’t see how I can take the comments out of the index file without losing them also from the individual posts, which I don’t want to do … all help gratefully received!

    There is a solution for that, too 🙂
    I suspect in that theme there isn’t a single.php template file either. So I’d save my index.php as single.php (having the references/link to comments) and after that delete them from the index file. WP is “smart” so that knows which template file to select for different views > See Template_Hierarchy.

    I understand this solution, and it makes sense, except that I change other elements of templates, both index and single post pages regularly, and this would mean I would have to do all of that twice. I might just live with the comments on the front! But thanks for your help, and hopefully this might be helpful to others.

    Well, change of heart. I’ve just done this – it was remarkably simple, and it is working. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Taking comments off the front and category pages’ is closed to new replies.