Archived topic
How do I add scripts before the closing 'body' tag?
3 replies · Started by Yumei on January 22, 2022
Hi, I am wondering where I can put in javascript code that's to be place before the </body> tag.
In Genesis Framework, one can paste code into the "header scripts" and "body scripts" boxes on each page. Is there such a place in GeneratePress? If not, how does one go about adding scripts?
Thanks,
Yumei
Hi there,
This should help:
https://docs.generatepress.com/article/hooks-element-overview/
https://docs.generatepress.com/article/wp_footer/
Let me know :)
I had gone through the article on hooks, but missed the wp_footer reference. Thanks!
No problem :)