Support » Fixing WordPress » Can’t edit comments.php

  • Anonymous

    Hi, my name is Ben Kling, and I’m working on creating a blog at

    I have a problem, though.

    When you view a single post, the comment form is too wide, and runs into the sidebar.

    In firefox, it just runs under the text, but in IE, it throws the whole sidebar down.

    I’ve edited the columns property in my theme’s ‘comments.php,’ and it allows me to save and says it was edited successfully.

    However when I view the post, nothing changes. The source code is still the same. In fact, no edits that I make to the page show up. Even when I tried testing it by editing the submit button text, the changes didn’t go into effect.

    I tried installing a plugin that would, among other things, add functionality to the comment form, hoping that the new style would take over, but that didn’t work.

    How can I change the comments.php file?

    Thank you in advance, I really appreciate your help.

    -Ben Kling

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

    It seems to me that only the textarea for posting comments is too wide. You should just edit this in the stylesheet.

    As for not being able to edit the comments.php file, have you checked that the permissions allow the httpd-runs-as user to write to it?


    The stylesheet doesn’t define the textarea width, as far as I can tell.
    It’s simply in the html of the textarea itself.

    In my file, it says cols=”75%”, but when I view the source of the post, it says cols=”100%.”

    No changes show up at all.

    I’m allowed to write to it, because it says it was successful, and when I open comments.php with my ftp client, the edits are there.

    They just don’t show up when the page is constructed.

    I even deleted comments.php from my server, and it still shows up on posts, just without the edits.

    I don’t know where the data is coming from or how to find out.


    Hmm so I’m pretty new to wordpress so I haven’t looked at the details for theming yet (as you can see from my site, I haven’t got around applying my own design yet… kubrick ftw!) However, it sounds like comments.php has nothing to do with the page in question. You should edit index.php, or single.php, or whatever page it is that’s being displayed there.

    Also, you should indeed be able to control the width of the text area using css:

    #comment {
     width: whatever

    Note that changes made in your stylesheet will effect themselves on both the single page and the comment page (as, like I said, they seem to be different pages altogether).

    Cool site BTW, I’d like to hear your musics.


    Well the single page is comprised of a bunch of other php pages and elements.

    At one point, after the post, the data from comments.php is supposed to be called. However, it seems to be drawing the data from somewhere else altogether.

    The CSS fix works for this particular problem, thanks!

    But for editing the button text and other elements contained within comments.php, I’d still like do know where that data’s coming from when a post page is constructed.


    I think I read something to the effect that WP employs some sort of caching… in this case, I bet clearing the cache will cause your changes to comments.php to be reflected.

    Good luck!


    I tried clearing my browser’s cache several times, if that’s what you mean. No dice.
    Thanks, though.




    So I thought this post was about not being able to edit comments. I’ll ask my question here instead of starting a new post.

    Since installing 2.6 I’ve lost the ability to edit comments in the comments interface. At the moment my only options are Unapprove, Spam & Delete.

    I’ve looked everywhere? Is this an installation error or a problem with my theme?

    Thanks for your time.

    running wp 2.6
    modified version of cutline 3 column

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t edit comments.php’ is closed to new replies.