Menu icon Foundation
running equalizer after facebook plugin

hello, I'm trying to implement the facebook "comments" plugin in my page, however the content when loaded is pushed down below the page since the equalizer is not being run properly (after the plugin finish loading) so I've been trying to put the relevant equalizer code inside the script with no success, here is my code:

    <!-- Facebook Script -->
    <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/it_IT/sdk.js#xfbml=1&version=v2.4";
        fjs.parentNode.insertBefore(js, fjs);
        /* following line stops the whole script*/
        $(document).foundation('equalizer'); 
    }(document, 'script', 'facebook-jssdk'));
    </script>

javascriptEqualizerfacebookplugin

hello, I'm trying to implement the facebook "comments" plugin in my page, however the content when loaded is pushed down below the page since the equalizer is not being run properly (after the plugin finish loading) so I've been trying to put the relevant equalizer code inside the script with no success, here is my code:

    <!-- Facebook Script -->
    <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/it_IT/sdk.js#xfbml=1&version=v2.4";
        fjs.parentNode.insertBefore(js, fjs);
        /* following line stops the whole script*/
        $(document).foundation('equalizer'); 
    }(document, 'script', 'facebook-jssdk'));
    </script>
Stefano Gandolfo about 4 years ago

I also tried to add this but doesn't resolve my issue:

    <script type="text/javascript">
        $(document).foundation();
        window.onload = function () { $(document).foundation('equalizer') }
    </script>

TC almost 4 years ago

I'm having the same problem too. The Facebook post plugin would stretch beyond the column container.

Stefano Gandolfo almost 4 years ago

I resolved by removing the plugin :) no point in having a link that points out of my ewbsite..

Jackson Mandela about 1 year ago

Thank you, I tried and its work. Thanks for sharing it. Its helpful for me and my site Facebook Sniper. Once again thanks for sharing it.