Remove Search Box from Service Manager SharePoint Portal

If you want to remove the Search box on your Service Manager Portal you could edit the CSS file for the site. Below I will describe how.

This is how the SMPortal looks like from the beginning.
Remove Search Box from Service Manager SharePoint Portal1

This is the result after the Search box is removed.
Remove Search Box from Service Manager SharePoint Portal2

 To remove the Search box do the following.

1. Browse to the folder C:\Program Files\Common Files\Microsoft Shared\Web Server Extension\14\TEMPLATE\FEATURES\SMPortalSharePointSiteFeatures\CSSModule.
2. Open the file SMPortalCSS.CSS and search for “search”.

Remove Search Box from Service Manager SharePoint Portal3

From the beginning all configurations is on one line.  Below I have changed the layout and put the configuration on different lines.

Remove Search Box from Service Manager SharePoint Portal4

3. Add the option “visibility:hidden”.

Remove Search Box from Service Manager SharePoint Portal5

4. Reset IIS with IISReset.
5. Change the theme for the SMPortal.
6. Change back the theme for the SMPortal.

Now it should be gone!

One Response to Remove Search Box from Service Manager SharePoint Portal

  1. Sebastian June 29, 2015 at 03:50 #

    Hello

    I was changed the CSS file, but the search is not hidden.

    This my setup

    /* search area bar, just after the main title */
    body #s4-topheader2 {
    background: url(“/Style Library/images/portalbannerslice.png”) repeat-x;
    background-color:#FFFFFF;
    /* [RecolorImage(themeColor:”Light1″)] background:url(“/_layouts/images/selbg.png”) repeat-x left top; */
    /* [ReplaceColor(themeColor:”Light2″)] background-color:#f6f6f6; */
    vertical-align:top;
    min-height:25px;
    width:300px;
    border:none;
    visibility:hidden;
    /* [ReplaceColor(themeColor:”Light2-Lightest”)] border-top:1px solid #e0e0e0; */
    /* [ReplaceColor(themeColor:”Light2-Lighter”)] border-bottom:1px solid #b8babd; */
    }/* new content here and in master page */

    Thanks for your help

Leave a Reply