WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I control the size of my search form? (3 posts)

  1. brittanywigand
    Member
    Posted 4 years ago #

    I have this code for my search bar:

    <!--create the searchfield-->
    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
    <fieldset><label for="s"><?php bloginfo('name'); ?> <?php _e('search','mtsjourney'); ?>
    <br /><input type="text"  size="20"  value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input type="submit"  id="searchsubmit"   value="<?php _e('Search','mtsjourney'); ?>" /></label>
    </fieldset></form>
    <!--searchform.php end-->

    I want to change the text size, and the size of the search bar. How do I do that?

    Also my site is BrittanyWigand.com... how do I get rid of the text above my search bar that says "brittanywigand.com search"?

    Thanks!

    <333333333333333333

    xoxoxoxoxoxoxoxoxo

  2. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    this bit of your code is responsible for the 'brittanywigand.com search' text (in your posted code):
    <?php bloginfo('name'); ?> <?php _e('search','mtsjourney'); ?>

    this part of the style.css controls what you want to change:

    input#s{
      width:100px;
      margin-left:-36px;
      padding:2px;
    }
    
    input#searchsubmit {
    	cursor: pointer;
    	align: left;
    	width:60px;
    }

    you may need to add parameters for the height and font-size.

  3. brittanywigand
    Member
    Posted 4 years ago #

    Thanks!

    xoxoxoxoxo!

Topic Closed

This topic has been closed to new replies.

About this Topic