Suite | Growth, Professional, Enterprise 또는 Enterprise Plus |
Support(다음 포함) | Guide Professional 또는 Enterprise |
Guide Templating V2를 사용하는 경우 테마에서 바닐라 JavaScript 대신 jQuery 문을 사용하려는 경우에는 jQuery 라이브러리를 가져와야 합니다.
이 문서는 안내용으로만 제공되며 jQuery 관련 문제가 있는 경우에는 공식 jQuery 사이트를 참조하시기 바랍니다.
헬프 센터 테마에서 jQuery를 설치하거나 업그레이드하려면 다음과 같이 하세요.
- 지식 관리의 사이드바에서 디자인 사용자 지정(
)을 클릭합니다.
- 작업하려는 테마에서 사용자 지정을 클릭합니다.
- 코드 편집을 클릭합니다.
- document_head.hbs를 클릭합니다.
- https://code.jquery.com을 방문하여 사용하려는 jQuery 버전의 축소 버전을 클릭합니다.
-
script
태그를 HTML 파일에 붙여넣습니다. 예:<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"> </script>
integrity
값은 다양합니다. 속성을 통해 브라우저는 타사 서버에서 호스팅된 리소스가 무단 변경되지 않았음을 알 수 있습니다.
jQuery 라이브러리가 로드되어 헬프 센터 테마에 jQuery 문을 포함할 수 있습니다.
댓글 3개
Mjuli
If JQuery file under this path static.zdassets.com/hc/assets/jquery_xxxxxxxx, how to update that file? so far I did not find it under the template folder
0
Christopher Kennedy
Hi Bradley,
You can use the version of jQuery that you'd like in your theme. That portion is totally within your control. Also, this article demonstrates loading jQuery from the document_head.hbs template. This template renders on all Help Center pages, so no need to duplicate that effort elsewhere.
Thanks,
0
Brad Allen
Two questions related to this.
1 - what version of jquery must be installed to use this code?
2 - does this just need to be added to the script.js file in templates or do i need some HTML in my new requests template as well?
0
댓글을 남기려면 로그인하세요.