• 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: https://faratro.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have a look at the bottom of this page:
    https://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 ?

    Thread Starter jonny

    (@jonny)

    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….

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

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

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

    Thread Starter jonny

    (@jonny)

    podz

    That worked just great !!!

    Thanks

    Flagged for Codex

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Input Text Box size’ is closed to new replies.