Support » Fixing WordPress » [1.5] Comment textarea formatting?

  • nicolelee

    (@nicolelee)


    Hi, I just upgraded to 1.5 Strayhorn yesterday, and I noticed today that my comment field is a little weird. As you can see from this link, my comment field is now really way too big. How do I resize this? I’ve looked at the CSS and the comments.php code, but I can’t figure it out. I think it has to do with “textarea” but I’m not sure.

Viewing 5 replies - 1 through 5 (of 5 total)
  • #commentform textarea {
    width:130px;
    }

    Drop that at the bottom of your css, and adjust to suit 🙂

    dissurion

    (@dissurion)

    I had the same thing after I upgraded and the solution for me was to replace the code line that called the comments.php with the following:

    <?php comments_template(); // Get wp-comments.php template ?>

    I figuered out that, before the code change, the comments.php of the default theme was called (instead of my own that I used, I checked this by varying the textarea size of this non used default theme). After changing the code my own comments.php file was happyly included again. 🙂

    dissurion

    (@dissurion)

    Side note: I don’t think it’s a good idea to resize the textarea in your stylesheet as pods suggest. While this will work in FF, IE seems to have problems with that, as learned yesterday:

    http://wordpress.org/support/topic.php?id=23321

    NuclearMoose

    (@nuclearmoose)

    It’s part of the HTML code for the form itself. Look in the comments.php file (in your themes folder) for this line:
    <textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>

    You can adjust the cols= value as well as the rows= values to suit your needs.

    heheh it uses the default template(kubrick) for ur comments.php.
    look for

    <?php comments_template( is_single() ); // Get wp-comments.php template ?>

    replace wif


    <?php comments_template(); ?>

    in themes index.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[1.5] Comment textarea formatting?’ is closed to new replies.