• Hi, Just finished my site and i wanted to be able to add comments at the bottom of some pages. After checking the right boxes in the dashboard i still can’t see any way for users to add comments!. maybe i have deleted the code by mistake or something. My site is http://www.rosielocks.com

Viewing 11 replies - 1 through 11 (of 11 total)
  • wpismypuppet

    (@wordpressismypuppet)

    You need to add:

    <?php comments_template(); ?>

    Where ever you want comments to appear! The checkboxes just allow for that to happen, but if you’re missing that line of code, it’ll never show anyway. Typically it’s found at the bottom of your single.php page, but it can be placed anywhere you want people to leave/read comments.

    Thread Starter rosielocks

    (@rosielocks)

    Hi, Was just looking in the library of my theme and i can’t seem to find the single.php file in there. I made my template in artisteer and exported it to wordpress. Any idea where i might find
    single.php?

    Thread Starter rosielocks

    (@rosielocks)

    sry template should read *theme

    wpismypuppet

    (@wordpressismypuppet)

    single.php is the page that would show a single post… Usually in a blog you’d have a “page of posts” showing a list of posts and a short excerpt. When you click on one of the posts, you are taken to single.php to see the whole post.

    If you don’t have a single.php, then the single posts would display on index.php by default.

    If you are working with pages, and not posts, then you should have a page.php file. If you don’t have that, pages will use index.php by default.

    Check out the WordPress Template Hierarchy for more info on what items use what files to be displayed!

    Thread Starter rosielocks

    (@rosielocks)

    I found the index php in the public.html folder and edited to read

    <?php
    /**
    * Front to the WordPress application. This file doesn’t do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define(‘WP_USE_THEMES’, true);

    /** Loads the WordPress Environment and Template */
    require(‘./wp-blog-header.php’);`

    I realised i must not be on the right track when my site disappeared. Am i on the righ track?
    `
    <?php comments_template(); ?>

    Thread Starter rosielocks

    (@rosielocks)

    sorry about that mess i highlighhted the code and pressed code but i guess i’m doing that wrong as well!

    wpismypuppet

    (@wordpressismypuppet)

    No no no no no… Undo that at once! 🙂

    The files you are going to be looking for will be located in public_html/wp-content/themes/[name of your theme]/

    Replace [name of your theme] with the name of your theme. You should find an index.php file there, but now that I know you are looking in the wrong place, you might find single.php and others 🙂

    Thread Starter rosielocks

    (@rosielocks)

    Great Thanks! i have edited the page.php to show comments at the bottom of the pages where i need them ( :. However they are aligned to the left and i would like them to be centered. Could you help me with this please?.

    Also i have a ‘blog’ page on my site where all posts will be displayed – which php file do i edit to display comments at the bottom there?

    Thread Starter rosielocks

    (@rosielocks)

    ignore my comment about the blog page please.

    Thread Starter rosielocks

    (@rosielocks)

    ok worked it out – i had the code in the wrong place. Thanks for the help ( :

    wpismypuppet

    (@wordpressismypuppet)

    You are welcome!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Comments Not Available’ is closed to new replies.