Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1309965
    ledaingu
    Participant

    Hi there,
    Hi, I have been trying to insert facebook plugin page into my x theme.
    But it only shows me the title of the facebook page without anything else (no facebook timeline neither facebook header)

    Here’s my process
    1- I’ve created a child theme
    2- I’ve added this script to my functions.php :
    add_action( ‘x_before_site_begin’, ‘x_print_scripts_in_body’ );
    function x_print_scripts_in_body(){
    ?>
    <!– add your code here –>
    <?php
    }

    3- I’ve added this script into a raw content

    Need some help
    Thanks

    #1310001
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    Kindly walk-through the guidelines given below to setup Facebook Comments extension which comes along with every purchase of X-theme for free :

    https://community.theme.co/kb/extension-facebook-comments/

    Let us know if you need any more information on this, would be happy to help you out.

    Thanks for understanding!

    #1310066
    ledaingu
    Participant

    Thanks for reply
    I already done that but it doesn’t work
    What i want is to integrate the facebook plugin plugin page

    It is asked to put 2 scripts :
    1- Include the SDK JavaScript on your page once,
    ( it is said “ideally right after the opening <body> tag”) that’s why i input it in the function.php of my child theme.

    2- place the second in the page which i did in a raw content

    But it keeps display like that in the post

    #1310378
    Friech
    Moderator

    Hi There,

    Add the code below to your Child Theme’s functions.php file and make sure your child theme is active.

    add_action( 'x_before_site_begin', 'x_print_fb_sdk' );
    function x_print_fb_sdk(){
    ?>
       <!-- FB CODE HERE -->
    <?php
    }

    Change the <!– FB CODE HERE –> with your actual code.

    Then paste your second set of code on a RAW content element, this will be the code that actually output the Facebook widget.

    Another thing, make sure the FB page is accessible to public.

    If this does not work, please provide us login credentials (wp-admin and FTP) in private reply so we can take a closer look.

    Thanks.

    #1310428
    ledaingu
    Participant
    This reply has been marked as private.
    #1310641
    Friech
    Moderator

    Hi There,

    Thanks for the credentials, but please provide us your FB codes as well. And was the FB page accessible to public? Can you provide us the link?

    Cheers!

    #1310673
    ledaingu
    Participant
    This reply has been marked as private.
    #1310739
    Friech
    Moderator

    Hi There,

    Thank you, but I mean the facebook sdk code, not credentials. And it seems you forgot to provide the site URL and the FTP host name above.

    Sorry about this confusions.

    #1310954
    ledaingu
    Participant
    This reply has been marked as private.
    #1311298
    Rue Nel
    Moderator

    Hello There,

    Thank you for the very detailed information. What you are trying to do has been done and resolve already. Please check out a more and simple instructions added by our staff which you can find in the following topic: https://community.theme.co/forums/topic/facebook-plugin/#post-1273196

    Please us know how how it goes.

    #1311589
    ledaingu
    Participant

    Hi there nothing have changed since i did what you’ve told me

    #1311904
    Rad
    Moderator

    Hi there,

    I assume this is the site http://www.demolisha.com/, it works okay. Please check the attached screenshot.

    Thanks!

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