Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2017 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jan. 24
4046
1
maj 23
2356
2
apr. 23
3553
2
feb. 24
5622
1
apr. 24
2748