Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #776109

    spinejoint
    Participant

    Hi,

    on http://sjc.beeldinuitvoering.nl/contact/

    I embedded a facebook-page through the facebook embedding generator. I pasted the Js code in the customizer, and the embed code in a Raw-element on my page.

    But there is no ‘feed’ visible, it is displayed as a blockquote. Apparently this is also written in the code. Is there a way to show the actual feed?

    Hope you can help out

    #776286

    Thai
    Moderator

    Hi There,

    Please remove the code under Customizer, then adding the following code under functions.php file locates in child theme:

    add_action( 'x_before_site_begin', 'x_insert_fb_code' );
    function x_insert_fb_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); js.id = id;
    	js.src = "//connect.facebook.net/nl_NL/sdk.js#xfbml=1&version=v2.5";
    	fjs.parentNode.insertBefore(js, fjs);
    	}(document, 'script', 'facebook-jssdk'));</script>
    	<?php
    }

    Hope it helps 🙂

    #777800

    spinejoint
    Participant

    Like a charm!
    Thanks for your continuous support.

    #777954

    Thai
    Moderator

    Glad it worked 🙂

    If you need anything else, please let us know.