Glidejs with WordPress

It’s because you’re using an import statement in the script tag for single.php. You would only use the import statement in an ES module as shown in your screen capture.

Because you’re enqueueing the script in functions.php, glide.js is available globally and you should remove the import statement from the script tag and glide will be initialized.

Alternately, you could take advantage of a CDN as described here https://glidejs.com/docs/setup/ to host the code.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)