SharePoint 2010 – Hiding the Search Bar

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: