Ive been staring at this issue for awhile and need some help. I am working on adding 2 different sliders using Glide.js, they are in different sections. They are shown or hidden based on a button click (using display). In each section I'm using a <script> tag to mount the `new Glide()` slider. When I preview the theme the JS in the console is different than the JS in the section files - no clue what is causing this. Screenshots/code below:
First section.liquid file:
Second section.liquid file:
Then when I preview in the console I get this:
so its changing those var declarations to what seems to be the first one thats run...
Any ideas/help would be appreciated.
Happy to help with your Shopify theme issues! Help me out by accepting my solutions. Feel free to email me at: email@example.com