WordPress.org

Ready to get started?Download WordPress

Forums

No comment.php (5 posts)

  1. intcon
    Member
    Posted 1 year ago #

    Hello...

    In a site template I'm working on there is no comment.php. I need to have comments available...can I add a comments.php (and where do i get one!) and make comments work? or is there more to it than that?

    thanks!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    comments do not primarily depend on teh existence of comments.php in your theme - a default comments.php will get used.

    try to enable comments through the dashboard settings:

    dashboard - settings - discussion

    and

    dashboard - pages - all pages - click quickedit below a page title - tick 'enable comments'

    same for posts

    or

    dashboard - pages - edit page - click 'screen options' near the top right - tick 'discussion' - this will enable a field below the page editor where you can 'enable comments'

    same for posts

    make sure that single.php and page.php have some code with comments_template(); after the content; http://codex.wordpress.org/Function_Reference/comments_template

    what theme are you working with?

  3. intcon
    Member
    Posted 1 year ago #

    it's a custom theme built for this group of ladies.

    all of the dashboard settings are there, the screen options are there....but when i post a comment the entire page disappears and it redirects to wp-comments-post.php

    there is no comments_template() in single.php and there is no page.php, but there is a home.php with no comments_template in it either...of course there's also no after the content in home.php either.

    anyone have any thoughts? this is driving me cuh-razy....

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    there is no comments_template() in single.php ... but when i post a comment

    weird - where do you post the comment, if the there is no 'comments_template()' code in your theme?

    have you added any other comment form code to your theme?

    can you post a link to the page where you can post comments?

  5. intcon
    Member
    Posted 1 year ago #

    heres the page
    http://smartasswaitress.com/category/news

    and i added this code `<?php global $withcomments;
    $withcomments=1;
    comments_template();?>` to that page to make the comment box show up...

    i'm off to work, will check back this afternoon!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.