Have you ever needed to hide the search bar on your site? Me neither until the other day. The page needed to be plain Jane and this was one of the requests. Turns out, this is very simple to do. All that you need to do is add a Content Editor Web Part (CEWP) to your page and add the following lines of code to it:
<!—-Hide Search Bar——>
<!—-Hide Search Icon—–>
This code will hide both the search bar and the search icon. It’s that simple! Try it for yourself.