Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2048 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
janv. 24
4059
1
mai 23
2360
2
avr. 23
3555
2
févr. 24
5638
1
avr. 24
2757