Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1787 Представления

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
3429
1
мая 23
2077
2
апр. 23
3118
2
февр. 24
4750
1
апр. 24
2289