Viewing 1 replies (of 1 total)
  • Thread Starter hitrust

    (@hitrust)

    after add snippet code below into callback’s input box, the first click of #malinky-ajax-pagination-button button can’t work, then the second click and later, the function works well and can add the share button to every post, so anything wrong?

    jQuery('#malinky-ajax-pagination-button').click(function(){
        document.addEventListener('malinkyLoadPostsComplete', function(e) {
          jQuery('.share-component,.social-share').share();
        });
    });
Viewing 1 replies (of 1 total)
  • The topic ‘can’t load share button’ is closed to new replies.