Tagged: x
-
AuthorPosts
-
April 12, 2016 at 2:33 am #877800
marsares4ParticipantHi,
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/” 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.
April 12, 2016 at 8:55 am #878318
JackKeymasterHi 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!
April 13, 2016 at 5:11 am #879717
marsares4ParticipantHi. 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.April 13, 2016 at 9:45 am #880123
ThaiModeratorHi 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 AccountDon’t forget to select Set as a private reply. This ensures your information is only visible to our staff.
Thanks.
April 13, 2016 at 10:53 pm #881354
marsares4ParticipantThis reply has been marked as private.April 14, 2016 at 3:27 am #881752
FriechModeratorHi 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!
April 14, 2016 at 10:14 pm #883478
marsares4ParticipantThis reply has been marked as private.April 15, 2016 at 4:50 am #883999
RadModeratorThis reply has been marked as private.April 15, 2016 at 9:34 pm #885153
marsares4ParticipantHi. 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?
April 16, 2016 at 11:37 am #885839
ThaiModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-877800 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
