You are using ES6 syntax, which is not going to work for IE 11, but that is a fairly small percentage of users.But as such you might not even need that line. I may be wrong, but once you have fixed the above two problems you will find out. I don’t believe lightGallery is available as a function directly, as you have called in your code.Your syntax is using $, presumably for jQuery, but you haven’t specified anywhere that $ is refering to jQuery.While this will load Photonic in the header, there is no guarantee that your theme’s script will be called after Photonic’s, which is why you will need to work with your theme’s support. Photonic’s script loads in the footer by default – you can change this to load in the header instead (via Photonic → Settings → Generic Options → Generic Settings → Include Photonic JS for non-Photonic Images / Videos and Photonic → Settings → Generic Options → Generic Settings → Force JS in header when possible). You will have to work with your theme’s support to figure out how to load the script after Photonic. You are calling the JavaScript at an arbitrary place, before Photonic’s scripts have been loaded.There are many problems with your JavaScript (you can see an error on your JavaScript console).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |