Archived topic
where to add code above body tag
3 replies · Started by Jo on October 13, 2019
I have some code I need to place above the body tag. Would that be in a hook? Below is the email I received with the code.
Add the following JavaScript code to every page of your site. Copy and paste the code snippet right above the </body> tag onto every page or into a template file.
<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script>
Hi there,
The wp_footer hook in Hooks element should work:
https://docs.generatepress.com/article/hooks-element-overview/
Let me know if this helps :)
Thanks I will give that a try. I'm not sure what I'm pasting into it since this came from my client who was in touch with the code generator so it will be hard for me to figure out if it is getting the results he needs.
thanks again for the quick response.
jo
No problem :)