Include the JavaScript SDK for Facebook on on Sparkling theme


my question is easy, where should I put this SDK code:

(<div id=“fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); = id;
js.src = “//”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>)

so that my widget shows german instead of english please?

Thanks a lot.

Hi @tupamarek,

I hope you are well today and thank you for your question.

As described on the facebook page as shown in the attached screenshot that you should add this code right after the opening <body> tag so to achieve this you have to overwrite the Sparkling theme header.php file in the child theme and add the facebook JavaScript SDK code right after the body tag.

I have attached the child theme to this reply that contains the above change so you can just download it and use it on your site.

Best Regards,