2015-03-16, 03:08:15
(This post was last modified: 2015-03-16, 07:41:11 by dikkewalter.)
I am using the awesome Grill theme and I added the facebook widget code in the sidebar thru a component and when you are not logged into FB the css breaks.
FB component:
sidebar:
I've tried setting the width in the FB component like data-width="100%" & data-width="300" with no difference.
Any suggestions?
FB component:
Code:
<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.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like-box" data-href="https://www.facebook.com/youalex.social" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"></div>
sidebar:
Code:
<div class="advertisement">
<h4>Volg ons op Facebook</h4>
<?php get_component('facebook'); ?>
</div>
I've tried setting the width in the FB component like data-width="100%" & data-width="300" with no difference.
Any suggestions?