How to hide search bar in the header of the employee center on specific pages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2023 05:55 AM
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
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2023 09:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2023 09:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2023 09:54 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2024 06:48 AM