Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1830 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
січ. 24
3514
1
трав. 23
2101
2
квіт. 23
3161
2
лют. 24
4873
1
квіт. 24
2346