Please help me to figure out why I can't get the slider to work. I'm using Oxygen builder and trying make a custom carousel slider using the Glide.js. I've added a Code Block on my page to build the structure and initialize slider, here's the code:
<div class="glide">
<div class="glide__track" data-glide-el="track">
<ul class="glide__slides">
<li class="glide__slide"><img class="abimg1" src="/wp-content/uploads/2025/01/blank.png"></li>
<li class="glide__slide"><img class="abimg2" src="/wp-content/uploads/2025/01/blank.png"></li>
<li class="glide__slide"><img class="abimg3" src="/wp-content/uploads/2025/01/blank.png"></li>
<li class="glide__slide"><img class="abimg4" src="/wp-content/uploads/2025/01/blank.png"></li>
</ul>
</div>
<div class="glide__arrows" data-glide-el="controls">
<button class="glide__arrow glide__arrow--left" data-glide-dir="<"><</button>
<button class="glide__arrow glide__arrow--right" data-glide-dir=">">></button>
</div>
</div>
<script>
new Glide('glide', {
type: 'carousel',
startAt: 0,
autoplay: 4000,
rewind: true,
focusAt: 'center',
perView: 1
})
</script>
I uploaded the CSS and JS files and used the WPcode plugin to link them (in header):
<link rel="stylesheet" type="text/css" href="/wp-content/uploads/glide/glide.core.css" />
<link rel="stylesheet" type="text/css" href="/wp-content/uploads/glide/glide.theme.css" />
<script src="/wp-content/uploads/glide/glide.js"></script>
A single image and left and right buttons appear on the page, the styles are got applied, but the slides don't move (not at the press of a buttons, not by dragging). Actual images are added as background using CSS.
I think I did everything by the instruction from official glide.js site. I have of course tried the default settings for the "new Glide" script and all the styles, no result.
Given my total lack of html and javascript knowledge there is nothing else I figured out to do besides googling "how-to" for a two days, no result.