How to remove favourite from header menu employee cneter

NelishaJ
Tera Contributor

Hello,

I dont want My favorites from header menu.

How can i remove it?

Thanks in advanced

9 REPLIES 9

Hi Siva, 

I tried your solution, but then i get an error about cross scope privilege.
 "ErrorExecute operation on script include 'todoPageUtils' from scope 'Employee Center' was denied. The application 'Employee Center' must declare a cross scope access privilege. Please contact the application admin to update their access requests."

@Dan Gripping 

Will check and let you know.

Hi @Dan Gripping 

To resolve the cross-scope privilege error, please refer to this article: Cross Scope Access Privilege error after editing Employee Center Header.

You can eliminate these errors in just a few simple steps.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

Juhi Poddar
Kilo Patron

Hi @NelishaJ @Dan Gripping 

Steps to remove "My favorites" from the Header menu:

  • Navigate to Service Portal → Portals and locate the desired ESC portal.

  • Open the ESC Theme, then open the Header widget used in that theme.

  • In the Server Script, find the line

data.isFavoritesEnabled = $sp.getValue('enable_favorites') == 'true'​

 

  • Comment out this line and replace it with:
data.isFavoritesEnabled = false;​

JuhiPoddar_1-1746038005138.png

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

Kit Cheong
Giga Guru

If you don't want to clone the header widget, hide the element using CSS.

Add the following to a CSS include in the portal's theme.

 

#favorites,
#favorites_mobile {
  display: none;
}