WordPress.org

Forums

Formatting Popup Comment page (6 posts)

  1. mkgago
    Member
    Posted 10 years ago #

    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.

  2. mkgago
    Member
    Posted 10 years ago #

    does anyone have any suggestions?

  3. Paul Ille
    Member
    Posted 9 years ago #

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

  4. Paul Ille
    Member
    Posted 9 years ago #

    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

  5. billh
    Member
    Posted 9 years ago #

    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 400x400 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 450x500 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.

  6. Paul Ille
    Member
    Posted 9 years ago #

    I was able to get mine sorted! :)

    http://www.paulille.com/wordpress/?comments_popup=73

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.