Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #877800
    marsares4
    Participant

    Hi,

    I already set up the child theme and added the following code to my functions.php file and put the second half of the code provided by https://developers.facebook.com/ into the raw content element on my front page (http://ldpthailand.org/). Somehow, the plugin still doesn’t show up.

    add_action( ‘x_before_site_begin’, ‘x_print_fb_sdk’ );

    function x_print_fb_sdk(){
    ?>
    <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&appId=1728879844001788″;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));</script>
    <?php
    }

    <div class=”fb-page” data-href=”https://www.facebook.com/Ldp-Thailand-1576458315998683/&#8221; data-tabs=”timeline” data-width=”340″ data-height=”500″ data-small-header=”true” data-adapt-container-width=”true” data-hide-cover=”false” data-show-facepile=”true”></div>

    Thanks in advance for your help. By the way, I’m using wordpress 4.4.2 and the latest X Theme and Cornerstone versions.

    #878318
    Jack
    Keymaster

    Hi there marsares4,

    Thanks for writing in!

    Could you clarify what you’d like to do please? Did you want to use Facebook sharing or other Facebook functionality? Please advise what you’d like to do and we’d be happy to assist 🙂

    Thank you!

    #879717
    marsares4
    Participant

    Hi. Thanks for responding. I’m a complete newbie at this so please be patient.
    What I’m trying to do is to embed my facebook page on the website.

    #880123
    Thai
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / Password
    – FTP Account

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    Thanks.

    #881354
    marsares4
    Participant
    This reply has been marked as private.
    #881752
    Friech
    Moderator

    Hi There,

    Thanks for the credentials, but it seems you forget the FTP password.

    Please update your code to this.

    add_action( 'x_before_site_begin', 'x_print_fb_sdk' );
    
    function x_print_fb_sdk(){
    ?>
    <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&appId=1728879844001788";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <?php
    }

    And this

    <div class="fb-page" data-href="https://www.facebook.com/Ldp-Thailand-1576458315998683/" data-tabs="timeline" data-width="340" data-height="500" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>

    Make sure you directly paste this code to functions.php file and Raw content element respectively.

    Hope it helps, Cheers!

    #883478
    marsares4
    Participant
    This reply has been marked as private.
    #883999
    Rad
    Moderator
    This reply has been marked as private.
    #885153
    marsares4
    Participant

    Hi. Thank you very much. I’m sorry to ask for help again but now the plugin only shows when I use Safari but not Chrome. Any thoughts?

    #885839
    Thai
    Moderator

    Hi There,

    Did you try with the incognito mode on Chrome.

    It’s working fine on my end (Chrome v49):

    http://i.imgur.com/XQRKciV.png

    Regards!

  • <script> jQuery(function($){ $("#no-reply-877800 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>