Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2049 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jan. 24
4059
1
maj 23
2361
2
apr. 23
3556
2
feb. 24
5641
1
apr. 24
2757