Support » How-To and Troubleshooting » Formatting Popup Comment page

Formatting Popup Comment page

  • How can I format the popup comment page? When I enabled pop-up comments, the text of the comments was aligned center by default, and the page had a gray background. How do I change those things, as well as (if possible) the size of the browser window that pops up and whether or not it can be resized?

    In addition, I see this <body id=”commentspopup”> in comments-popup.php, but I don’t see anything named “commentspopup” in the style sheet.

    thanks for the help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • does anyone have any suggestions?

    This is something I am also interested in and am having issues. I have 1.5.2

    I’m still having issues formatting the actual comment information, but I’ve had success with the rest of the popup window.

    I editted comment-popups.php in wp-content/themes/default

    In the file header.php of your template, you included the line <?php comments_popup_script(); ?> to activate the popup comments. Without specifying parameters, it uses the defaults of 400×400 size using the index.php file as a template. The function itself is described beginning on line 77 in the comment-functions.php file in the wp-includes directory.

    You don’t need to change this file to change the code in this file. Simply include the desired size in the parameters. My call to popup functions looks like this:

    <?php comments_popup_script(450,500,''); ?>

    The popup will be 450×500 and use the index.php file as its template.

    The formatting of the comment information is controlled by the style.css file for your particular theme.

    I was able to get mine sorted! 🙂


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Formatting Popup Comment page’ is closed to new replies.