Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
363 views
in Q2A Core by
How can I add HTML / JavaScript code before the closing "</body>" Tag via Plugin? 
I do NOT want to use the "Custom HTML at bottom of every page" option in the admin backend.

1 Answer

+3 votes
by

found it. 

    function body_suffix() {        
       $this->output('foo baa');         
    }
by
via plugin? What is the Plugin?
by
I wrote an plugin for syntaxhighlighting.

Needed this code after the main content:

<script type="text/javascript">
    SyntaxHighlighter.all();
</script>

in my plugin I do this:

function body_suffix() {
    $this->output('<script type="text/javascript">SyntaxHighlighter.all();</script>');
}
...