• This is probably something that’s been asked a million times but I’ve been searching the site for a while now and can’t find the answer.

    How can you make it so that when you click on the comments link, the comments and comment box appear below the post instead of in a popup box?

Viewing 10 replies - 1 through 10 (of 10 total)
  • I can’t actualy get the comments box to appear in a popup. Not that I wanted too though…

    I nevertheless find this an interesting question since, as I said, I’ve never been able to have the comments box appear in a popup.

    Find this line in the head section of your index.php file.
    <?php //comments_popup_script(); // off by default ?>

    To get a pop up change it to:
    <?php comments_popup_script(); ?>

    To have comments below the post put the line:
    <?php include(ABSPATH . 'wp-comments.php'); ?>

    right below
    ?php the_content(); ?>

    FLAGGED FOR CODEX.

    I don’t have those lines

    <?php //comments_popup_script(); // off by default ?>

    in my index.php (guessing you’re referring to template file) I have 1.5. Am I missing something?

    1. Those lines are in the header.php
    2. Upgrade! to 1.5.2

    I have 1.5.2 actually, but those lines are not in the header.php file. They’re not even in the index.php file. Regardless I was able to add


    <?php comments_popup_script('600','600'); // off by default ?>

    to the top of index.php and I’m in business.

    Also, this works fine for accessing the blog through the index.php, but as I’m integrating WordPress into an external site, this doesn’t quite work so well. On index.php the comments pop up, but on an external page using the loop it does not.

    I’m unsure at this point where to start or what to edit to make that work properly.

    What I did was add it to my loop and it works well now from my external site.

    <?php comments_popup_script(450, 450); ?>
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    mellowcotton

    (@mellowcotton)

    Hi. I’m using WP 2.01 and I can’t find the popup code anywhere. How do I add the popup box?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Displaying comments below post instead of in popup’ is closed to new replies.