The Search FoRM Dilemma || The Search form Templating
Checking if showing Search Results The conditional statement you want is is_search() documented here. Search.php and Content-search.php Search.php is the template file that corresponds to displaying results from a search form request. If it is not present in the theme (meaning there is no search.php) then wordpress defaults to index.php and uses that. Changes to … Read more