Title: raymex's Replies | WordPress.org

---

# raymex

  [  ](https://wordpress.org/support/users/raymex/)

 *   [Profile](https://wordpress.org/support/users/raymex/)
 *   [Topics Started](https://wordpress.org/support/users/raymex/topics/)
 *   [Replies Created](https://wordpress.org/support/users/raymex/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/raymex/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/raymex/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/raymex/engagements/)
 *   [Favorites](https://wordpress.org/support/users/raymex/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Where does the ‘dynamic sidebar’ get it’s searchform from?](https://wordpress.org/support/topic/where-does-the-dynamic-sidebar-get-its-searchform-from/)
 *  [raymex](https://wordpress.org/support/users/raymex/)
 * (@raymex)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/where-does-the-dynamic-sidebar-get-its-searchform-from/#post-598412)
 * I had the same problem, and I wonder why the default widgets are not using searchform.
   php, instead they are generating the same code again..
 * Well I opened widgets.php and changed the wp_widget_search function as follows:
 *     ```
       <?php
       		echo $before_widget;
       		if  ( file_exists(TEMPLATEPATH . '/searchform.php')  {
       			include (TEMPLATEPATH . '/searchform.php');
       		} else {
       	?>
       			<form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
       			<div>
       			<input type="text" name="s" id="s" size="15" /><br />
       			<input type="submit" value="<?php echo attribute_escape(__('Search')); ?>" />
       			</div>
       			</form>
       	<?php
       		}
       	echo $after_widget; ?>
       ```
   
 * And everything works fine now. Ofcourse next update to WP will most likely write
   over this modification so I have to change this portion everytime I update WP.
   🙁

Viewing 1 replies (of 1 total)