Archived topic
Adding JS
1 reply · Started by Dmitry on March 5, 2019
Hello, friends!
Thanks for your product & the best support Ive ever seen)
What would you recommend to use with GPP, if I need to add JS files in two ways: 1) to the entire site 2) to the separate pages.
Simple CSS is a great tool for similar needs with CSS. What about JS?
Hi there,
simplest way is to use the Hook Element. You can add them to the WP_Foot hook and set your display rules for where you want them fired.
https://docs.generatepress.com/article/hooks-element-overview/