Title: Replace search.php ?
Last modified: August 13, 2020

---

# Replace search.php ?

 *  [sallymoos](https://wordpress.org/support/users/sallymoos/)
 * (@sallymoos)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/replace-search-php/)
 * Hi,
 * I’ve just discovered Code Snippets and it’s excellent.:)
 * One question … I have a client who has a custom search.php page, different from
   the one which comes with the theme. Each time I update the theme, I have to manually
   edit the updated search.php theme file. This is a pain. 😉
 * Is there any way to set up a snippet to “overwrite” the search.php used with 
   the theme?
 * Thanks!
 * Sal.

The topic ‘Replace search.php ?’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [search-page](https://wordpress.org/support/topic-tag/search-page/)

 * 0 replies
 * 1 participant
 * Last reply from: [sallymoos](https://wordpress.org/support/users/sallymoos/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/replace-search-php/)
 * Status: not a support question