How to hide search bar in the header of the employee center on specific pages?

Kiara_S
Tera Contributor

There a search bar on my header of my Employee center portal. On the home page it disabled. If I go to other pages it is turned on. Which is good except that now the request is to hide the search bar on two specific pages (knowledge base page and service catalog), because the request was to move the search bar to a more central point in the page. I was able place a search bar on these pages, but I can't figure out how to hide the search bar in the header of these specific pages.

I found a JSON in sp_instance_menu which is part of our customized header_menu that turns the search bar on and off for the main page. I wanted to build a similar method for these other pages, but i cannot find out how this json interacts/gets called with the rest of the portal.

},
"exclude_search_on_homepage":{
"displayValue":"true",
"value":true

},

4 REPLIES 4

Marc4
Tera Expert

I wanted to do the same and hide the search bar in all portal pages...but did not find anything. 

So I created a new css and added it to the portal.

//This will hide the search bar
.header-search {
  display: none;
}

 I hope this helps.

Marc4
Tera Expert

I wanted to do the same and hide the search bar in all portal pages...but did not find anything. 

So I created a new css and added it to the portal.

 

//This will hide the search bar
.header-search {
  display: none;
}

 

 I hope this helps.

Marc4
Tera Expert

I wanted to do the same and hide the search bar in all portal pages...but did not find anything. 

So I created a new css and added it to the portal.

 

 

//This will hide the search bar
.header-search {
  display: none;
}

 

 

 I hope this helps.

mahesh manthena
Tera Contributor