How to remove "Tours" and "Live Chat" from the header of CSM portal?

Aki17
Kilo Guru

I would like to remove "Tours" and "Live Chat" links from the header of CSM portal.

The 2 items were not listed in the "CSM Header Menu", so I'm wondering where to configure them. Please kindly give me some advice.

 

find_real_file.png

Best Regards,

Aki

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

you can remove the "Tours" menu on header from "sys_properties" table. 

Just set value to 'false' for this  property com.snc.guided_tours.sp.enable.

For removing the Live Chat, please follow my solution provided to this thread:

https://community.servicenow.com/community?id=community_question&sys_id=37f9ee74db2b33c013b5fb243996...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

View solution in original post

3 REPLIES 3

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

you can remove the "Tours" menu on header from "sys_properties" table. 

Just set value to 'false' for this  property com.snc.guided_tours.sp.enable.

For removing the Live Chat, please follow my solution provided to this thread:

https://community.servicenow.com/community?id=community_question&sys_id=37f9ee74db2b33c013b5fb243996...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Hi @Alberto

 

i did set value true to make enable tours but my requirement is to enable only for one portal not for every portal.

 

do you have idea how to do that.

 

Thanks

Hello @shail_phillip 

To perform this action, you must Clone the "Header Menu" widget.
This new widget doesn't clone properly "Angular ng-template" records, so you must copy and paste manually from the original widget. Be careful during this process, because "Angular ng-template" can't have the same id so you should replace them in the record form AND in the code.

For example, menuTemplate is an original "Angular ng-template". Replace it with "menuTemplate-custom" ID, copy and paste the code from the original one and replace it, see below

 

<li ng-repeat="item in item.items" ng-include="'menuTemplate'" role="presentation" />

 

with

 

<li ng-repeat="item in item.items" ng-include="'menuTemplate-custom'" role="presentation" />

 

 


In the body HTML template of the widget, you must replace this too :

 

  <li ng-repeat="item in visibleItems" ng-class="{dropdown: item.items.length > 0, 'header-menu-item': true}" ng-include="'menuTemplate'"></li>

 

 

Do the same for :

  1. item-added-tooltip.html > item-added-tooltip-custom.html
  2. spDropdownTreeTemplate> spDropdownTreeTemplate-custom

 

This steps was only to fix "New Header Menu".

Now go to Server script on line 9 and change this :

 

data.showTours = (gs.getProperty('com.snc.guided_tours.sp.enable') === 'true') && data.isLoggedIn;

 

 To

 

data.showTours = false;

 

 
Now you have 2 "Header Menu" widget :

  • One which depends on the sys_property com.snc.guided_tours.sp.enable
  • Second which never show Tours

 

Thanks for reading, it was my first message on ServiceNow Community.

Hope it helps some of you guys and as others said, if I have answered your question, please mark my response as correct and/or helpful.

 

See ya!