Did you also put code in index.php to actually display the search results?
https://wordpress.org/support/article/creating-a-search-page/
Did you also put code in index.php to actually display the search results?
https://wordpress.org/support/article/creating-a-search-page/