Triggering javascript event to ad adds to infinite scroll
-
I am trying to add an ad between infinite scroll instances. I have tried to put a javascript event trigger, but when I reload my site, it returns a blank page.
Perhaps I am putting the code in wrong? This is what I’m using:( function( $ ) { $( document.body ).on( 'post-load', function () { // New posts have been added to the page. } ); } )( jQuery );
Am I supposed to have this in my functions.php file or somewhere else?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Triggering javascript event to ad adds to infinite scroll’ is closed to new replies.