Skip to Content
Menú
This question has been flagged
1 Respondre
2032 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
2
de gen. 24
4047
1
de maig 23
2357
2
d’abr. 23
3553
2
de febr. 24
5626
1
d’abr. 24
2751