질문
API를 사용하여 헬프 센터 에서 웹 위젯(클래식) 사용자 지정하려면 어떻게 해야 하나요?
답변
웹 위젯(클래식) 이 헬프 센터 에 임베드된 경우에는 헬프 센터document_head.hbs기본서식 파일을 수정하여웹 위젯(클래식) API를사용하여 설정을 사용자 지정합니다.
사용자 지정 웹 위젯(클래식) 설정을 추가하려면 다음과 같이 하세요.
- Guide에서 디자인 사용자 지정 아이콘(
)을 클릭합니다.
- 편집하려는 테마를 클릭하여 엽니다.
- 옵션 메뉴를 클릭한 다음 코드 편집을 선택합니다.
- 기본서식 섹션에서document_head.hbs를클릭하여 코드를 수정합니다.
- 첫 번째
<header class="header">
선 아래와 마지막 헤더 선 위에 원하는 코드를 배치합니다.
예를 들어 헬프 센터 에서 웹 위젯(클래식) 의 위치를 변경하려면 다음 API 설정을 사용합니다.
<script type="text/javascript">
window.zESettings = {
webWidget: {
offset: { horizontal: '100px', vertical: '150px' }
}
};
</script>
document_head.hbs파일에 다음과 같이 표시됩니다.
웹 위젯(클래식) 및 헬프 센터 사용자 지정하는 데 대한 자세한 내용은
번역 고지 사항: 본 문서는 콘텐츠에 대한 기본적인 이해를 제공하기 위해 자동 번역 소프트웨어를 사용하여 번역되었습니다. 정확한 번역을 제공하고자 합당한 노력을 기울였으나 Zendesk는 번역의 정확성을 보장하지 않습니다.
번역된 문서에 포함된 정보의 정확성과 관련하여 질문이 있으시면 문서의 공식 버전인 영문 버전을 참조하시기 바랍니다.
댓글 5개
Casey Keefe
Hi Zendesk - In partnership with our Premier team, we have identified that something in our theme (Mink) is preventing the customization of Web Widget. This was determined by plugging the code into the ZD Copenhagen theme where the customizations were able to be applied.
Question now is - does anyone have any suggestions on what JS in the theme might be preventing the API calls to the Web Widget? You can view our current Help Center here. Thanks!
0
Casey Keefe
Thank you Gab
Upon further investigation and working with our ZD engineers, it looks like some of these customizations are no longer available now that we have ZD Messaging deployed on the backend (but not yet enabled on the frontend).
0
Gab
Yes, that's definitely possible! There are a wide variety of ways to customize the look and feel of the Web Widget (Classic). Some are built in functionality, and even more options appear when you start working with custom code and the API.
Here are some resources to get you started:
0
Casey Keefe
Hi Zendesk - I am attempting to customize Web Widget for a Brand under our main account (in order to differentiate the Brand), but unfortunately none of the window.zESettings API calls are working for me. At this time, I am trying to change the name of the Title in the Widget as well as the bot icon (please see screen). The Main Zendesk account is currently running Web Widget. The Brand's Web Widget appears the same, with the exception of the yellow theme color:

Is it possible to customize the Brand's Widget? Thanks!
0
Shawn
Hello,
Is this the only method to use use the APIs in the Help Center Web Widget? Looks like editorial access to header.hbs requires Pro or Enterprise level plans. Ideally from a UI and controls prospective it would seem to make more sense that admins should be able to do this via the 'Setup' tab under Channel/Widget since there is an interactive input field here but no way to save changes. Putting in a feature request for this.
Thanks
1
댓글을 남기려면 로그인하세요.