これが見つかりました:tytyスタック、 Wordpressの無限スクロールでソーシャルアイコンが機能しない
StumbleUponとPinterestの2つのボタンだけで、同じことをしています。
Pinterestの「PinIt」ボタンとStumbleUponバッジ/ウィジェットを呼び出すスクリプト関数を探しています
StumbleUponのために何かを見つけましたが、それは理想的ではありません、
まだ見ているPinterestの手がかりは、彼らに陽気な手紙を書いた。
これが私が無限スクロール設定に貼り付けているコードです「次の投稿がフェッチされた後に呼び出されるJavascript」TextArea、
// jQuery Masonry,
var newElems = jQuery( newElements ).css({ opacity: 0 });
newElems.imagesLoaded(function(){
newElems.animate({ opacity: 1 });
jQuery('#content').masonry( 'appended', newElems, true );
});
// ReCall Scripts for Social Sharing Buttons
var el = document.body;
//Google Plus
if (typeof gapi !== "undefined") { gapi.plusone.go(el); }
//Facebook
if (typeof FB !== "undefined") { FB.XFBML.parse(el); }
//Twitter
if (typeof twttr !== "undefined") { twttr.widgets.load(); }
//Pinterest
//StumbleUpon
(function() {
var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
li.src = 'https://platform.stumbleupon.com/1/widgets.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
})();
上品なまま、スタック。