• Hello,

    just a note about imagesLoaded support issue: if you see
    Uncaught ReferenceError: imagesLoaded is not defined or similar, just get https://imagesloaded.desandro.com/ to your website.

    Example of implementation (once you download and save https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js to your theme/js/imagesloaded.pkgd.min.js then add this to your functions.php

    function add_imagesloaded_support_js_script() {	
    		wp_register_script('imagesloaded_support_js_script', get_stylesheet_directory_uri().'/js/imagesloaded.pkgd.min.js', array('jquery'),'1.1', true);
    		wp_enqueue_script('imagesloaded_support_js_script');	
    }
    add_action( 'wp_enqueue_scripts', 'add_imagesloaded_support_js_script' );

    Didn’t get to troubleshoot this all together (what exactly caused the issue, so only posting a quick fix over here if anyone else stumbles on this same thing).

    • This topic was modified 4 years, 10 months ago by hpmg.

The topic ‘imagesLoaded Support Issue’ is closed to new replies.