Forums

Comments template not working (6 posts)

  1. katemgilbert
    Member
    Posted 2 years ago #

    When I initially wrote my template files, I didn't want to include comments on blog posts, so I deleted the <?php comments_template(); ?>. Now I have put it back in, but it doesn't work - no comment form is displayed. Discussion settings are set to allow comments. How can I get the comment form back on my site?

    karminmusic.com

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Does your theme include a comments.php file?

  3. katemgilbert
    Member
    Posted 2 years ago #

    @esmi - Yes, it does. And comments-popup.php. I have not made modifications to either of those files. I used the default Kubrick theme as my base.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    What template did you add <?php comments_template(); ?> to?

  5. katemgilbert
    Member
    Posted 2 years ago #

    home.php

    Should I add it to a different template? Each of my pages has a unique page template, and the comments are only needed on home.php

  6. pabile
    Member
    Posted 2 years ago #

    <?php comments_template(); ?> should be in page.php and single.php as far as kubrick is concerned.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags