How to hide the megamenu bar in employee center

CarlosEHM
Tera Contributor

Hi all.

I'm working on the employee center configuration. Our stakeholder doesn't need any taxonomy and also no megamenu bar in the portal, this is part of the requirement, but I don't know how to hide the Navbar divider. This is my first implementation and I don't know which way to solve it, so please Can anyone suggest me how to achieve this task?

4 REPLIES 4

Harish KM
Kilo Patron
Kilo Patron

Hi @CarlosEHM you could remove taxonomy from the Portal and for mega menu can you share screenshot what you want to hide? usually they come from Main menu in the Portal ,

 

HarishKM_0-1708650657047.png

 

Regards
Harish

Hi Harish thanks for your comment. I need to hide the navbar divider. I don't have taxonomy in the portal, that's why I don't need that space in the portal, In the image I have marked which bar to remove.2024-02-27 14_59_39-Copy of Employee Center Homepage tec - Tec employee center 2024.png

GlideFather
Tera Patron

@CarlosEHM look at the "Banner announcements" whether there is not any active and eventually change the role or date until it shall be displayed

 

KamilT_0-1752840955582.png

 

OR

 

KamilT_1-1752841024268.png

 

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


dnbly8894
Tera Contributor

@CarlosEHM 

So I actually figured this out today for a PoC for my own company. Preface this with all of the usual advice about Clone Widget and not to make this change to the original/core. I created this Copy Of Employee Center Header widget and updated the Header reference for my Theme to point to the "Copy Of" widget.

I had already tried removing the Taxonomy for EC before doing this, like you, however to remove the menu space on the page you need to comment out Line 42 of the Server Script for the Header menu widget (in this case "Copy Of Employee Center Header").

dnbly8894_0-1752841204711.png

 

There is a known issue that updating the header widget also updates the records for the Restricted Caller Access Privilege. You'll need to follow this guide to fix it. Cross Scope Access Privilege error after editing E... - ServiceNow Community

 

Result - Mega menu is now removed from the portal display:

dnbly8894_1-1752841237420.png