1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Inserting something before </body> tag

Discussion in 'XenForo Questions and Support' started by Core Freedom, May 20, 2013.

  1. Core Freedom

    Core Freedom Well-Known Member

    I would like to insert the speakpipe "call me" button on every page of the forum. The instructions say to insert this code before the </body> tag but I don't know where to find that tag or if it would mess with the templates. I have successfully installed it on a page when creating a new node and it works but I'd like to install it once so it shows up on every page. Can this be done?

    HTML:
    <!-- Begin SpeakPipe code -->
    <script type="text/javascript">
    (function(d){
    var app = d.createElement('script'); app.type = 'text/javascript'; app.async = true;
    var pt = ('https:' == document.location.protocol ? 'https://' : 'http://');
    app.src = pt + 'www.speakpipe.com/loader/l0bs5qehivhepozkj9oppdfp0tnqoyz3.js';
    var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(app, s);
    })(document);
    </script>
    <!-- End SpeakPipe code -->
    
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Core Freedom likes this.
  3. Jeremy

    Jeremy XenForo Moderator Staff Member

    Template: PAGE_CONTAINER

    This isn't guaranteed to work in every page if an add-on you use decides to use a different page. This template, I believe, is in use for all standard XF pages
     
    Core Freedom likes this.
  4. Core Freedom

    Core Freedom Well-Known Member

    So cool! It works, it shows up on every page now! People were complaining that they didn't know how to contact me (the 'contact us' button at the bottom right is too small for htem).

    You can check it here, right side. So proud. Thanks for your help!
     

Share This Page