Remove Tours from Service Portal header without disabling Tours themselves?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 03:53 PM
I would like to remove the "Tours" link from the Service Portal header:
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 05:54 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 06:35 PM
Thanks for the idea. I think I would rather have some CSS instead of customizing the widget though, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 05:58 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 06:36 PM
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