Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @adambundy,
    Could you share the JS you are using or a link to the issue?

    You could potentially just add the JS to your footer.php file if needed.

    <script>
    almComplete = function(alm){
    alert("DONE");
    }
    </script>

    Let me know!

    Thread Starter adambundy

    (@adambundy)

    @dcooney thanks for the reply!

    Is manually including the script in my footer file the only way to get it after your JS – not possible with a standard enqueue?

    I am trying to use the almComplete callback to trigger append of an additional element with some branding into the masonry grid, but as mentioned, Im getting the ‘almComplete is not defined’ error because my custom JS runs before the plugin JS.

    jQuery(document).ready(function($) {	
    	almComplete = function(alm){
    		console.log("Ajax Load More Complete!");
    		$('#bookend').appendTo( $('#ajax-load-more') );
    	}
    });
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to enqueue my JS after the plugin JS’ is closed to new replies.