4/17/2013

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?

Image

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.

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


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}
   </style>

0 comments: