Hello.
I'm trying to run the Masonry script on the site under wordpress, but I just can't do it. Chrome stubbornly issues "Uncaught ReferenceError: Masonry is not defined".
I tried to connect and via function.php (the script must be embedded in wp)
function mason_script() { wp_enqueue_script('masonry'); } add_action( 'wp_enqueue_scripts', 'mason_script' ); I tried to just display in the header
<script src="http://masonry.desandro.com/masonry.pkgd.min.js"></script> <script> Always a mistake.
Tell me, pliz, what could be wrong?
Example - https://jsfiddle.net/gpt46yac/