Title: Search Form (searchform.php) help
Last modified: August 31, 2016

---

# Search Form (searchform.php) help

 *  [royman2004](https://wordpress.org/support/users/royman2004/)
 * (@royman2004)
 * [10 years ago](https://wordpress.org/support/topic/search-form-searchformphp-help/)
 * Hey,
 * Im trying to make my search form to search exactly what I type in the bar, but
   somehow it always shows me ALL the pages on my website.
 * What should I edit in the .php file?
 * Thanks !!
 * <form role=”search” method=”get” class=”search-form” action=”<?php echo home_url(‘/’);?
   >”>
    <div class=”form-group”> <div class=”input-group”> <input class=”form-control”
   type=”search” placeholder=”<?php esc_html_e( ‘Search’, ‘docpress’ ) ?>” value
   =”<?php echo esc_html( get_search_query() ) ?>” name=”s” title=”<?php _e( ‘Search
   for:’, ‘docpress’ ) ?>” /> <span class=”input-group-btn”> <input type=”submit”
   class=”btn btn-primary” value=”<?php esc_html_e( ‘Search’, ‘docpress’ ) ?>” /
   > </span> </div> </div> </form>

The topic ‘Search Form (searchform.php) help’ is closed to new replies.

## Tags

 * [bar](https://wordpress.org/support/topic-tag/bar/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [royman2004](https://wordpress.org/support/users/royman2004/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/search-form-searchformphp-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
