This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Hiding Search Bar

#51703
Ernest MarcinkoErnest Marcinko
Keymaster

With your code variation it happens because the function first checks the page IDs, and when they match, it terminates empty (meaning that the search is not visible).
The search ID is only checked afterwards and at that point it does nothing whatsoever as on both condition the function terminates with the same output.