jQuery works instead of $

As different JS Frameworks use the $ for it’s functions (jQuery, MooTools), WordPress loads jQuery in the “noConflict”-Mode, which means that it doesn’t use the $ but only jQuery. You can now use jQuery instead of $ encapsule your calls like RiddleMeThis proposed On a personal note: honestly, it’s not that big a deal to … Read more

WordPress core jquery version file not loaded?

OK, problem was in WP jquery noConflict. Basically it must work if you replace first $ with jQuery, but in this case needed to replace second $ too. So, answer is to change second $ by jQuery. <textarea class=”emojitextarea”></textarea> <script type=”text/javascript”> jQuery(document).ready(function() { jQuery(“.emojitextarea”).emojioneArea({ pickerPosition: “bottom” }); }); </script>

React to AJAX adding to the page

Found this at https://codex.wordpress.org/AJAX_in_Plugins JavaScript triggering the post-load event after content has been inserted via Ajax: jQuery( document.body ).trigger( ‘post-load’ ); JavaScript listening to the post-load event: jQuery( document.body ).on( ‘post-load’, function () { // New content has been added to the page. } ); I suppose it’s up to each plugin to trigger whichever … Read more