WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Resizing Comment Box (7 posts)

  1. tompic823
    Member
    Posted 4 years ago #

    I'm having some problems for a while now with the Comments box on my site, DailyBlogged.com. If you try to comment on any post, you will see the comment box is too long. It extends into the side bar where some of the text you type is hidden. I have tried editing comments.php as suggested in other forums but nothing works. It's also probably worth mentioning that I am on the theme Fresh News and that comments can be posted just fine. The issue is simply cosmetic.

    The line found in comments.php for the Comment Box is as follows:

    <p style="padding:5px 0px 10px 0px;"><textarea name="comment" id="comment" style="width:400;" rows="10" tabindex="4"></textarea></p>

  2. peterjharrison
    Member
    Posted 4 years ago #

    Hi tompic823,

    There are only a few things that can effect the size of a comment box, firstly it would be colspan on the textarea, but as I can see from the code above this wouldn't be the case. The other thing would be you theme css file. Have a look in there and see if any thing is being applied to it! If you have developer toolbar for firefox you can press ctrl shift and Y and then click on the comment box and it will tell you what styles are being applied.

    I'm not at my computer at the moment so I can't check you site so if you have any trouble then I will have a look when I get in later.

    Regards
    Pete

  3. peterjharrison
    Member
    Posted 4 years ago #

    Hi tompic823,

    I have just had a look at your website and the reason why the comment box is to big is because of this line of code in your comments.php

    <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

    You need to remove the cols setting as this is causing it to be to big. You will find this line in your comments.php file most likely.

    Regards
    Pete

  4. tompic823
    Member
    Posted 4 years ago #

    Thanks for the suggestions but as you can see from my first post, I don't have the "cols" in the commentbox line. I used the developer toolbar and it points to styles.css so I'll take a look and see what I can do. I'll report back with my finding. Thanks again!

  5. tompic823
    Member
    Posted 4 years ago #

    I checked styles.css but I'm not really sure what I'm looking for.

  6. tompic823
    Member
    Posted 4 years ago #

    Bump. Any help would be greatly appreciated.

  7. tompic823
    Member
    Posted 4 years ago #

    Fixed the error by upgrading my version of the Theme. Thanks Peter!

Topic Closed

This topic has been closed to new replies.

About this Topic