Title: Adding comments in one page theme
Last modified: August 20, 2016

---

# Adding comments in one page theme

 *  Resolved [Pewpewdesign](https://wordpress.org/support/users/pewpewdesign/)
 * (@pewpewdesign)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/)
 * Hello, I am using a custom one page theme (the content is scolling up and down
   for the different areas) where I have area News. I want to display the full news,
   title and comments (if possible I would like to make the comments show in some
   popup window or activated on click div)
 * Atm I am using this where my news area is:
 *     ```
       <?php the_title(); ?>
        <?php the_content(); ?> <br />
         <?php endwhile; ?>
       ```
   
 * I tried to add `<?php comments_template(); ?>` to the code above, but it does
   nothing.
    Can you please give me some pointers ?
 * Thanks for your time

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295379)
 * Do you have a comments.php?
 * comments template needs something to load. By default it looks for comments.php
 *  Thread Starter [Pewpewdesign](https://wordpress.org/support/users/pewpewdesign/)
 * (@pewpewdesign)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295582)
 * Hello, thanks for your reply.
    I’ve put the comments.php file from twentyten 
   theme in my theme folder, yet nothing shows up.
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295592)
 * Well…. the twentyten comments.php mostly houses a callback to twentyten’s functions.
   php
 * That may be the issue
 *  Thread Starter [Pewpewdesign](https://wordpress.org/support/users/pewpewdesign/)
 * (@pewpewdesign)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295599)
 * I’ve changed the code on the index.php to
 *     ```
       <?php while ( have_posts() ) : the_post(); ?>
       <?php get_template_part( 'content', 'single' ); ?>
       <?php endwhile; // end of the loop. ?>
       ```
   
 * Still, on the index page the comments don’t show, they show only when the post
   is open like this [http://localhost/?p=106](http://localhost/?p=106)
 * functions and comments files are from twentyeleven.
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295600)
 * usually on index.php, comments are brought in using comments_popup_link
 * [http://codex.wordpress.org/Function_Reference/comments_popup_link](http://codex.wordpress.org/Function_Reference/comments_popup_link)
 * Which leads to the full form on the single view using comments_template
 * and then for more fun, often
 *     ```
       if ( is_singular() && get_option( 'thread_comments' ) )
       		wp_enqueue_script( 'comment-reply' );
       ```
   
 * is in the header to allow for threaded comments to function properly
 *  Thread Starter [Pewpewdesign](https://wordpress.org/support/users/pewpewdesign/)
 * (@pewpewdesign)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295620)
 * Thanks a lot for spending time helping me out, this was exactly what I needed.
   If you need any help with graphic design I’d love to pay back the favor.
 * Best regards,
    BBB
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295629)
 * Got it all sorted out eh?? Good job!! And thanks for the generous offer!

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

The topic ‘Adding comments in one page theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/adding-comments-in-one-page-theme/#post-2295629)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
