콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Hello,


As in the subject - I know how to add custom script to theme, but how to add such script to single page onle?


regards

Tomasz

아바타
취소
베스트 답변

A simple way, without modifying existing code, is to use the 'embed code' snippet in the website editor. Next, add the code required, or an import for e.g., a library.


Above example will output 'home page' in the console in the home page, but not in the other pages.

I hope this helps!

아바타
취소
관련 게시물 답글 화면 활동
2
1월 24
3443
1
5월 23
2079
2
4월 23
3127
2
2월 24
4785
1
4월 24
2292