Favicons desapears on chrome with facebook comments

Posted in: Newspaper
Post count: 46

Hi,

I have a strange problem. When i put the facebook code in the header.php (at the beginining) to make the facebook comment works, the favicon desapears on chrome and internent explorer, it only works on firefox.

The facebook code is :

<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/fr_FR/all.js#xfbml=1&appId=…………….”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

Do you know what to do ?

Thanks for your great theme and very great support 🙂

Post count: 3343

Hi,
You don’t need to add that code! Do you need Facebook comments? Install the plugins for it.

Thanks!

Post count: 46

Hi Marius,

thanks for your reply. I didn’t want to install one more plugin but i’m going to do that, i prefer to have the favicon and i need facebook comment for sharing more.

Post count: 3343

Hi,
Can you give me a link to your site to see the issue?
Thanks!

Post count: 46

Hello Marius,

My website : http://www.guide-du-chien.com

Thank you !

Post count: 854

hi,
I see that you are using WP Rocket on your site : http://screencast.com/t/K1x0WpiZ .

can you disable all your plugins then try to add your code.

try also adding a plugin for facebook sharing.

I see that in internet explorer you have the favicon : http://screencast.com/t/DQE1xjuPQ

Thanks for you message.
Radu A.

Post count: 46

Hi Radu,

i’ve found the issue, i’ve deleted this part of code and now it’s work perfectly : <div id=”fb-root”></div> and i keeped this part:

<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/fr_FR/all.js#xfbml=1&appId=…………….”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

I don’t know why but it works lol

Thank you !

Post count: 161

Will this be fixed in a future update? I don’t want to ude the fb plugin, because the custom code is mutch faster and cleaner. Is there a temporarily fix for this?

Post count: 3343

Hi,
I don’t understand why need that code to be in header, because the theme work with the official facebook comment plugin.

Post count: 161

i dont want to use the facebook comment plugin because it overrides the normal comment section and cant be combined with disqus plugin. so my question is, why doesnt the favicon show up? it only shows on the homepage, but not on category and post pages. how to fix this without removing the code from the header?

Post count: 3343

Hi,
Sorry but I’m lost, on our demo the favicon work as you can see on category pages, pages, homepage, everywhere.

Why for you doesn’t work? Show me your site url to see the issue.

Post count: 161

Hey Marius,

Take a look at my website: http://mhmag.nl

Post count: 46

Hi r1kay,

Your website’s favicon works fine with the facebook code in header on chrome. How did you do for made it work ?

Thanks

Post count: 3343

Hi,

@r1kay
your favicon works.

Viewing 14 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic.