You'll have to copy the body() function from qa-theme-base.php to the current theme you're using, and then make the necessary changes. Like the example below.
Edit
public function body() { $this->output('<body'); $this->body_tags(); $this->output('>'); $this->output('<!-- Load Facebook SDK for JavaScript --> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ xfbml : true, version : \'v6.0\' }); }; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = \'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js\'; fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script> <!-- Your customer chat code --> <div class="fb-customerchat" attribution=setup_tool page_id="YOURPAGEID" theme_color="#4267b2" logged_in_greeting="YOUR GREETING." logged_out_greeting="YOUR GREETING."> </div>">'); $this->body_script(); $this->body_header(); $this->body_content(); $this->body_footer(); $this->body_hidden(); $this->output('</body>'); }
public function body()
{
$this->output('<body');
$this->body_tags();
$this->output('>');
$this->output('<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : \'v6.0\'
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = \'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js\';
fjs.parentNode.insertBefore(js, fjs);
}(document, \'script\', \'facebook-jssdk\'));</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="YOURPAGEID"
theme_color="#4267b2"
logged_in_greeting="YOUR GREETING."
logged_out_greeting="YOUR GREETING.">
</div>">');
$this->body_script();
$this->body_header();
$this->body_content();
$this->body_footer();
$this->body_hidden();
$this->output('</body>');
}
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.