Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1803 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 24
3443
1
maj 23
2079
2
kwi 23
3127
2
lut 24
4785
1
kwi 24
2293