Home › Forums › Pro Support › Run jQuery after ajax load more › Reply To: Run jQuery after ajax load more
July 1, 2018 at 10:36 pm
#5087
Keymaster
This would be your full code:
jQuery( document ).ready( function($) {
$('#wpsp-1023 .wp-show-posts-entry-title a').html(function(i, v) {
return v.replace('–', '<br/>');
} );
$( document ).on( 'wpsp_items_loaded', function() {
$('#wpsp-1023 .wp-show-posts-entry-title a').html(function(i, v) {
return v.replace('–', '<br/>');
} );
} );
} );
Let me know if that works or not 🙂