Hide "Search This Site..." in SharePoint 2010

Hey Folks,

So, you want to hide "Search This Site..." Box which is located at Top-Right of the SharePoint Site?


It's pretty simple!! (Though initially I tried search it a lot and got many different options but none worked!! :( )

So Finally, I found a solution which actually worked.

  • Add a Content Editor Web Part (CEWP)
  • Edit The Web Part and click the Source Editor Button
  • Paste the following:
     #SRSB {display:none}

Hide It on all Pages:
  • Use SharePoint Designer to edit your master page and put the above style tag just after the SharePoint style controls
   <SharePoint:CssLink runat="server"/>
   <SharePoint:Theme runat="server"/>   <style>
     #SRSB {display:none}