WordPress.org

Support

Support » Plugins and Hacks » Infinite-Scroll » [Plugin: Infinite-Scroll] Javascript to be called for Add to Any (Lockerz) plugin

[Plugin: Infinite-Scroll] Javascript to be called for Add to Any (Lockerz) plugin

Viewing 4 replies - 1 through 4 (of 4 total)
  • ps: thanks in advance 🙂

    Plugin Author beaver6813

    @beaver6813

    Someone asked recently for the regular addtoany script, this might work (put this in the javascript to be called after posts load box):

    if (window.addthis){
    
    window.addthis.ost = 0;
    window.addthis.ready();
    }

    EDIT: Ignore me… thats for the addthis plugin… I’ll take a look tomorrow 🙂

    No worries. Thanks for the quick response — and I’m sure those seeking the “ShareThis” javascript call for Infinite-Scroll will find the above code useful.

    Hi guys,

    I found this worked for me

    $(document).ready(function() {
    if (window.addthis){
    window.addthis = null;
    }
    $.getScript('https://s7.addthis.com/js/250/addthis_widget.js#async=1');
    if (window.addthis) {
    window.addthis.ost = 0;
    window.addthis.ready();
    }
    })

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Infinite-Scroll] Javascript to be called for Add to Any (Lockerz) plugin’ is closed to new replies.
Skip to toolbar