Help Center - adding additional sub menu below my-activities

답변함

1 댓글

  • Tal Admon

    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

     

    1

게시물 댓글 달기가 중지되었습니다.

Zendesk 제공