Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2044 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 24
4056
1
thg 5 23
2360
2
thg 4 23
3555
2
thg 2 24
5633
1
thg 4 24
2755