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>
Advertisements

Tags: , , , , , , , , ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: