Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2041 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
led 24
4055
1
kvě 23
2359
2
dub 23
3554
2
úno 24
5630
1
dub 24
2755