• 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

Core Freedom

Well-known member
#1
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 -->
 

Jeremy

Well-known member
#3
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

Well-known member
#4
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!