hey yigit. can you help me to add a facebook fans banner to custom widget area.
i have added a custom widget area “social” to the page.
and i added this code to the functions.php
function add_custom_target(){
?>
<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/de_DE/sdk.js#xfbml=1&version=v2.5&appId=399489406801839";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php
}
add_action('wp_footer', 'add_custom_target');
But i think i have done something wrong. it looks like this at the moment: http://imgur.com/a/4qYzz
but it try to get this look: http://imgur.com/a/B2DX2
Hey diefleischerei!
The code you provide, is not just a script ( to be loaded on wp_footer ) but you also have to make it visible, before enfold footer.
Please try here
https://github.com/thatryan/enfold-global
let us know if that will help you
Best regards,
Basilis