Hit the SEARCH button with an empty search field
-
Is it by default that WordPress displays the default blog page instead of the search page if someone hit the search button with an empty field?
Exemple:
https://www.domain.com/?s=&post_types=post,page or
https://www.domain.com/?post_types=post,page
would display the default blog page layoutwhen
https://www.domain.com/?s=text%20to%20search&post_types=post,page
would display the search page layout from my themea javascript alert suggesting the search field is empty would make the trick to prevent a simple trig of that page. Maybe you guys have another suggestion in regards to this.
Henrik
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Hit the SEARCH button with an empty search field’ is closed to new replies.