Is there a way to make a conditional tag that tests if it is search-no-results
page?
I know that there is a function to check if is_search()
page:
if(is_search()){
echo "search page";
}
But I didn't found a way to check for search-no-results, and I noticed that WordPress gives body class with search-no-results
to this page.