Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    Whenever you are adding new page on your blog at the time there is an option of “allow comments” in discussion section..which must be selected to allow comments..

    Thanks,

    Shane G.

    Thread Starter ladii-mystic

    (@ladii-mystic)

    i did, but it still shows no box =/ for the comment

    You need to have this after The Loop in your theme’s page.php file:

    <?php comments_template(); ?>
    Thread Starter ladii-mystic

    (@ladii-mystic)

    i’m sorry, i couldn’t find where to put that…

    this is my blog’s template:

    /*
    Theme Name: Runescape
    Theme URI:
    Author: E-Scapes-India
    Author URI:
    Description: Runescape
    */

    [Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as https://wordpress.pastebin.com. Thanks!]

    What was the name of the file you just opened and pasted in your last post? Is it style.css?

    Now, reread what I wrote:

    You need to have this after The Loop in your theme’s page.php file:

    That’s right. Make sure you have that in your page.php file. You might need to add a div tag. So your code to paste in might look like this:

    <div id="comments">
    <?php comments_template(); ?>
    </div>

    You probably have that code in your single post file (single.php). You can do a copy and search for the code I did above in that file and see how it’s displayed in that file. Then simply copy and paste it into your page.php near the bottom.

    Thread Starter ladii-mystic

    (@ladii-mystic)

    oh i got it now…

    Thank you guys so much!!!

    Thanks. Easy. No wonder there’s no plugin to do this.

    I must be stupid.

    I am using the Atahualpa theme, but there are also the classic and default WP themes. Only the WP Default has a page.php.

    I tried placing the above code at the end of the file.. nothing, and then before the first </div>, nothing.

    I have the allow comments checked.

    Can you folks please help. I’m not sure what (“A$fter the loop”) means.
    Should there be a page.php in the Atahualpa theme folder?

    if i were you, i would create one. my page template looks like this:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    get_header(); ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <div id="content" style="position: absolute;">
    <h1><?php the_title(); ?></h1>
    <div class="entry">
    <?php the_content('Read the rest of this page &raquo;'); ?>
    
    <?php comments_template(); ?>
    
    <?php wp_link_pages(array('before' => '<strong>Pages:</strong> ', 'after' => '', 'next_or_number' => 'number')); ?>
    </div>
    <?php endwhile; endif; ?>
    <?php get_footer(); ?>
    </div>

    with the comments template included ??

    I am having the same problem I have tried pasting the code given above in my page template and nothing is happening.
    Can someone please break this down for css dummies. Like for instance what is the css loop? Is that the entire css code or is it a particur block of code?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to allow comments on PAGES?’ is closed to new replies.