コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1806 ビュー

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
2080
2
4月 23
3127
2
2月 24
4785
1
4月 24
2293