Title: Editing search box
Last modified: August 19, 2016

---

# Editing search box

 *  Resolved [iheartchopin](https://wordpress.org/support/users/iheartchopin/)
 * (@iheartchopin)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/editing-search-box/)
 * Hello,
    How do I make the search box smaller? (Width-wise) This is the code I’m
   using for the search box
 *     ```
       <?php 	/* Widgetized sidebar, if you have the plugin installed. */
       					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?><ul>
       			<li>
       				<?php get_search_form(); ?> <?php endif; ?>
       			</li></ul>
       ```
   
 * Is there any way I could edit it through CSS? If so, how do I edit the php code?
 * Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/editing-search-box/#post-1019220)
 * Hi,
 * You can edit the CSS file to make size changes in search box..edit the code for
   input textarea and search submit and it will resolve the case..
 * Thanks,
 * Shane G.
 *  Thread Starter [iheartchopin](https://wordpress.org/support/users/iheartchopin/)
 * (@iheartchopin)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/editing-search-box/#post-1019229)
 * Thanks Shane, that helped a lot!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Editing search box’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [iheartchopin](https://wordpress.org/support/users/iheartchopin/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/editing-search-box/#post-1019229)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
