WordPress.org

Ready to get started?Download WordPress

Forums

Input Text Box size (7 posts)

  1. jonny
    Member
    Posted 9 years ago #

    I was trying to change the size of the input text box on my comments. I want them larger. Even I did change the size value on wp-comment.php (to any value) the box stay just the same. I also checked the css, but I have no clues. Is there any other place where I need to change it??
    I have WP 1.2.2, my url: http://faratro.com

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

    Have a look at the bottom of this page:
    http://www.tamba2.org.uk/wordpress/graphicalcss/comments/index.html

    The areas you need are in wp-comments.php - did you refresh the page using ctrl-f5 after the change ?

  3. jonny
    Member
    Posted 9 years ago #

    Thank podz

    Yes, I did refresh, even cleaned the cache.
    I changed all size values at wp-comment.php, somenthing like this:

    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="60" tabindex="2" />

    The original size was set at "20", but the box is always the same. I also searched for any code on the CSS file, but I couldn't find any size related code....

  4. Kafkaesqui

    Posted 9 years ago #

    " I also searched for any code on the CSS file, but I couldn't find any size related code...."

    That's because there's nothing there initially. Just add this to your css:

    form input {
    width: 120px;
    }

    (Edit: podz's suggestion below is better, as it avoids any conflict with other input fields on a page.)

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

    #commentform #author {
    width: 80%;
    }
    #commentform #email {
    width: 60%;
    }

    Drop that at the bottom of your wp-layout.css, and adjust to suit :)

  6. jonny
    Member
    Posted 9 years ago #

    podz

    That worked just great !!!

    Thanks

  7. NuclearMoose
    Member
    Posted 9 years ago #

    Flagged for Codex

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.