When echo follow Ajax button inside Ajax pagination template not working?
I think, if you change your jQuery click action selector to handle event delegation the follow buttons should work after being added by ajax. // Change this $( ‘.follow-links a’ ).on(‘click’, function(e) { // to this $( ‘.some-parent-not-added-by-ajax’ ).on(‘click’, ‘.follow-links a’, function(e) { // or as last resort $( document ).on(‘click’, ‘.follow-links a’, function(e) {