Help Center - adding additional sub menu below my-activities | Community
Skip to main content

Help Center - adding additional sub menu below my-activities

  • April 6, 2016
  • 1 reply
  • 0 views

Hi, 

I am setting up a Help Center and I want to add a a new link/sub menu to the user-nav.

I want this to be called documentation and to appear below my My Activities menu option.

Currently I have {UserPic User name}, {My Activities}

 

This topic has been closed for replies.

1 reply

  • April 7, 2016

Hi Chris,

Try the following:

Open the Theme Editor, and in the Document Header, add the following script tag:

<script>
$( document ).ready(function() {
if (HelpCenter.user.role=='end_user'){
$('div#user-menu>a.my-activities').after('<a id="custom_menu_link__c" role="menuitem" href="http://www.reutal.com">Visit Reutal.com</a>')
}
if ((HelpCenter.user.role=='manager') || (HelpCenter.user.role=='agent')){
$('div#user-menu>a.my-activities').after('<a id="custom_menu_link__c" role="menuitem" href="http://www.reutal.com/admin">Log in to Reutal.com</a>')
}
});
</script>

You will notice the IF clauses for agent/manager and end-user.
Modify the links and the text accordingly.

If you want the links to get opened on a new tab, instead of over the current one, add the attribute target="_blank" to the <a> tags.

To see live example, visit:
moderatortal.zendesk.com

Log in as sun1@example.com , password: 123456