Archived topic
Can i add Java Script with elements?
1 reply · Started by Marcin on November 3, 2020
Viewing posts 1–2 of 2
I need to add JS script to my page to make my accordions work. Hovewer adding JS with Insert Header and Footer does not work. Can I use element to add Java Script code to my <head> or <footer>?
Hi there,
yes, you can use the Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
The wp_head hook will place the script inside the <head>
The wp_footer hook will place it in the <footer>
This archived topic is closed to new replies.