Remove Tours from Service Portal header without disabling Tours themselves?

CCSF-Syd
Tera Expert

I would like to remove the "Tours" link from the Service Portal header:

 

Screenshot 2024-12-17 at 3.52.03 PM.png

but I do not want to disable Tours themselves, I just don't want it in the menu (so I cannot set `com.snc.guided_tours.sp.enable` to `false` as suggested elsewhere).

 

Any and all guidance is much appreciated!

6 REPLIES 6

Nick Parsons
Mega Sage

You can customise the header widget to remove this:

  • Service Portal > Portals
  • Open your portal & change your scope if required
  • Click the (i) next to Main menu field. In my case this opens the Employee Center Menu widget instance
  • Change your scope if needed, and click the (i) next to the Widget field. In my case this opens the Header Menu widget.
  • Again, change your scope, and make a clone of the widget using the [Clone Widget] UI action.
  • In the cloned widget, change the HTML to remove the Tours section towards the bottom of the widget, ie, the HTML between the opening <li> and closing </li> for tours:

 

<li ng-if="data.isLoggedIn && data.guidedTours && !isMobile" class="dropdown header-menu-item gtd-dropdown-container">
...
</li>​

 

  • Make a new widget instance by navigating to sp_instance_menu and copying the same instance options from the widget form step #3,  using the modified widget for the "Widget" field.
  • Update your portal definition's Main menu field to use the new widget instance you created.

Thanks for the idea. I think I would rather have some CSS instead of customizing the widget though, thank you!

Runjay Patel
Giga Sage

Writing DOM code is not recommended as it will lead to performance issue, disabling in the right way to do so. What’s your business requirements that you don’t wanna hide it using property.

Well the property doesn’t hide the menu item, it disables all Tour functionality. My requirement is that I don’t want the item in the menu, but I still want the auto launched Tours to work