WordPress.org

Ready to get started?Download WordPress

Forums

[1.5] Comment textarea formatting? (6 posts)

  1. nicolelee
    Member
    Posted 9 years ago #

    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.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    #commentform textarea {
    width:130px;
    }

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

  3. dissurion
    Member
    Posted 9 years ago #

    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. :)

  4. dissurion
    Member
    Posted 9 years ago #

    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

  5. NuclearMoose
    Member
    Posted 9 years ago #

    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.

  6. Safirul Alredha
    Member
    Posted 9 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.