Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2054 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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!

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 24
4064
1
mag 23
2362
2
apr 23
3560
2
feb 24
5651
1
apr 24
2758