I have an archive page and everything is working perfectly fine, except when someone enters a search query that returns no content (no posts were found) then I get the nothing found message.
My question is how can I target only when the search query returns nothing and have a custom template to be shown.
Thank you in advance to anyone who can help me.