Navigation

    Digital Liberation Forums

    • Register
    • Login
    • Search

    script not inserted just before </body>

    Header and Footer Scripts
    2
    3
    23
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Robert last edited by

      Thank you for making this plugin!

      I'm trying to insert a script just before the </body> tag. However, when using the plugin, the script gets places immediately after the <body> tag, before a bunch of other scripts.

      Example: https://browngoldsmiths.com/covid-19-operations/

      This is the script:

      <script>
      (function (u,c,o,i) {
      window['ClientbookWebChatObject'] = {u:u,c:c,w:o,i:i};
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = "https://webchat.clientbookretail.com/wc.min.js";
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })(279be771-4964-4f6b-a932-e889bc06a353);
      </script>

      How can I place this script just before </body>?

      Thank you!

      1 Reply Last reply Reply Quote
      • R
        Robert last edited by

        Update: I turned off the plugin and added the script directly to the footer.php file

        1 Reply Last reply Reply Quote
        • Jeroen Claessens
          Jeroen Claessens last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote
          • First post
            Last post