-
AuthorPosts
-
June 29, 2015 at 6:00 pm #465991
Today, the content displayed in the Facebook like box has changed from images of followers to also include a chopped off view of the Facebook cover photo and a few followers plus a lot of white space. I removed it from a demo site that I’m working on because it looks awful. Is there a way to fix it?
- This topic was modified 9 years, 5 months ago by nb2556.
June 30, 2015 at 3:32 pm #466524Hey nb2556!
Send us a link to your page so we can see what’s going on. Make sure your using the latest version of Enfold, 3.2.2, and deactivate all plugins while testing.
Regards,
ElliottJuly 13, 2015 at 11:36 am #472283Having the same issue.It now displays the pages title as well as one row of followers. I can change the height to whatever I wand – the Display remains totally the same.
July 14, 2015 at 4:18 am #472800Hi!
Could you provide us with a link to the site in question so that we can take a closer look please?
Regards,
RikardJuly 14, 2015 at 10:56 am #472972Development Site is http://www.georg-ludwig.de/aktuelles. I’ve tried the code-generator for the new plugin on facebook. Interesting to see, that it doesn’t accept data-height as well (see production site: http://www.stiletto-mode.de/aktuelles.
Maybe a Facebook-Problem ?
July 14, 2015 at 4:30 pm #473290Hi Georg,
The reason for the change is that Facebook has deprecated a few of their plugins including their old features with a recent API update.
https://developers.facebook.com/docs/plugins/deprecated
Regards,
DakeJuly 30, 2015 at 6:50 pm #480845Hi, same problem for me, what can we do, the style is included in the bounding div and you can not change the css.
Regards.
JeanAugust 1, 2015 at 6:57 am #481641Hey!
The old facebook like box is deprecated so you will not be able to use it anymore. You can generate a new likebox widget on the fb page plugin generator. Make sure that “Adapt to plugin container width” is enabled: https://developers.facebook.com/docs/plugins/page-plugin
Regards,
IsmaelAugust 4, 2015 at 11:18 am #482614Hi Ismael,
I’ve been trying this for a few days now (on a local hosted site) and I just can’t seem to get it to work. When I add the code generated by Facebook and I put it in the text Widget it will only display a blockquote saying: Facebook – it just wont show the FB image and faces. The only way I got it working was trough some code I found online:
<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.3”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>Is this the right way to do it?
- This reply was modified 9 years, 4 months ago by Pink_Monkey.
August 4, 2015 at 12:56 pm #482637Hi Pink_Monkey, yes, it takes one side to the HTML code provided by Facebook in a text-html widget and on the other hand add the script provided also by Facebook in header.php, and there it works.
Look this website in the footer : http://www.gestalt.fr/
Regards.
JeanAugust 4, 2015 at 1:52 pm #482665Hi Jean,
tnx for the fast response. I’ve put the code inside the textwidget together with the FB like button code. Is it better to put the code in the header.php? And if so, how can i do this using a child theme? Just put it in the functions.php?
Regards,
SebastiaanAugust 4, 2015 at 1:57 pm #482667Hi!
Please add following code to functions.php file of your child theme
function add_custom_code_head(){ ?> // YOUR CODE GOES HERE <?php } add_action('wp_head', 'add_custom_code_head');
Regards,
YigitAugust 4, 2015 at 3:16 pm #482741Hi Yigit,
I used your code and gave it a try, but it didn’t work. It didn’t show the widget. Can you please help me out.
It looked like this:
in functions.php
function add_custom_code_head(){ ?> <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.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script><div class="fb-page" data-href="https://www.facebook.com/facebook" data-width="294px" data-hide-cover="false" data-show-facepile="true" data-show-posts="false"></div> <?php } add_action('wp_head', 'add_custom_code_head');
and in the textwidget in the sidebar:
<div class="fb-page" data-href="https://www.facebook.com/divalifestyle" data-width="294px" data-hide-cover="false" data-show-facepile="true" data-show-posts="false"></div>
But when i put all this in the textwidget it works fine (without using functions.php):
<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.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script><div class="fb-page" data-href="https://www.facebook.com/facebook" data-width="294px" data-hide-cover="false" data-show-facepile="true" data-show-posts="false"></div>
- This reply was modified 9 years, 4 months ago by Pink_Monkey.
August 4, 2015 at 9:24 pm #482977Hi, I copy a header.php file in my child theme with the script Facebook and it’s work fine.
Regards.
Jean- This reply was modified 9 years, 4 months ago by freepixelweb.
August 5, 2015 at 4:11 pm #483451Hey!
You can actually copy both scripts on a text widget. If you generate the likebox widget, you need to copy two scripts. You can grab these scripts inside a text widget. Here’s an example:
<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/en_US/sdk.js#xfbml=1&version=v2.4"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-page" data-href="https://www.facebook.com/kriesi.at" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" data-show-posts="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/kriesi.at"><a href="https://www.facebook.com/kriesi.at">Kriesi</a></blockquote></div></div>
Cheers!
IsmaelAugust 10, 2015 at 8:35 am #485086HI Ismael,
thats exactly what i did (see my previous reply) so it works now!
ty!Cheers
August 10, 2015 at 2:12 pm #485306Hi!
glad Ismael could help you. Let us know in a new ticket if you have some more questions or issues related to the theme. We are happy to assist.
Best regards,
AndyOctober 7, 2015 at 7:10 am #514941Hello, somebody with a solution for the problem with Facebook Like box width?
I have tried copying the codes inside a text widget but still it doesnt work. By doing this the box does not appears.
I appreciate your help.October 7, 2015 at 1:52 pm #515208Hi!
@ricaza Please do not highjack threads. You already have an open one here – https://kriesi.at/support/topic/facebook-like-box-width-problem/page/2/Regards,
Yigit -
AuthorPosts
- The topic ‘Change in appearance of Enfold:facebook likebox’ is closed to new replies.