[Plugin: Infinite-Scroll] Javascript to be called for Add to Any (Lockerz) plugin
-
WordPress version: 3.3.1
Infinite Scroll version: 2.0b2.120111
Theme: YooTheme Sparkz
Plugin: Addtoany (Lockerz) Social Media Share
JS Resources: http://share.lockerz.com/buttons/customize/asynchronous_loading or http://share.lockerz.com/buttons/customize
http://static.addtoany.com/menu/page.js
Test site: http://theboombaplive.comI’m attempting to call javascript so that my “share / email” button will load the ‘AddtoAny (lockerz)’ dropdown menu for new posts created by Infinite Scroll. I really didn’t want to bother anyone and was sure to research entire forum before coming here. Sorry if I’m missing any information. The following below were the most helpful posts:
http://wordpress.org/support/topic/infinite-scroll-vs-fb-like-and-g
http://wordpress.org/support/topic/plugin-infinite-scroll-masonry-infinite-scroll-what-javascript-to-callCode:
// A custom "onReady" function for Lockerz Share function my_addtoany_onready() { a2a_config.target = '.share-this'; a2a.init('page'); } // Setup Lockerz Share "onReady" callback var a2a_config = a2a_config || {}; a2a_config.tracking_callback = { ready: my_addtoany_onready }; // Additional a2a_config properties may go here // Load Lockerz Share script asynchronously (function(){ var a = document.createElement('script'); a.type = 'text/javascript'; a.async = true; a.src = 'http://static.addtoany.com/menu/page.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(a, s); })();
The topic ‘[Plugin: Infinite-Scroll] Javascript to be called for Add to Any (Lockerz) plugin’ is closed to new replies.