[Resolved] where to add code above body tag

Home Forums Support [Resolved] where to add code above body tag

Home Forums Support where to add code above body tag

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1033664
    Jo

    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&#8221; async></script>

    #1033670
    Leo
    Staff
    Customer Support

    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 ๐Ÿ™‚

    #1033684
    Jo

    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

    #1033697
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.