Images aren't showing in slideshow


Hi, I'm trying to insert my own code as HTML into a section on my Supply theme as the slideshow that's there by default doesn't work the way I want it. When I view the page in a browser when testing it shows and works fine, however when I paste it into the Shopify HTML editor it doesn't show up the images. The text is there and everything looks formatted ok, but no slideshow images.

This is the code..


<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="text/html; charset=iso-8859-2" http-equiv="Content-Type">
<link rel="stylesheet" href="">
.mySlides {display:none;}
background:url('your_image.jpg') no-repeat center center;
float: left;
padding: 10px;
word-wrap: normal;
max-width: 500px;
min-width: 50%;
font-family: 'Nanum Pen Script', cursive;
font-size: 28px;
color: green;
text-transform: uppercase;
font-family: 'Poppins', sans-serif;

<div class="w3-content w3-section myDiv">
<div class="myDiv" style="font-family: 'Calibri, Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif; font-size: 18;">
<span class="NanumH1">THE PROBLEM...</span><br>
Over 100 million tonnes of plastic is used every year. Over 10 million tonnes of that ends up in our oceans! There are 5 known gyres (ocean garbage patches) that potentially cover up to 16 million km2! That's an area about the size of Europe, India and Mexico!
The problem is that these patches aren't large islands of plastic, but tiny microplastics that we can't just scoop up out of the ocean without affecting marine life.
And what's even worse is that seafood that we eat has more than likely consumed some of these toxic microplastics, so effectively you're eating your own trash!!
We also need to think about the damage that we are doing to marine life that are consuming these plastics or getting caught up and tangled in them and it's killing them. 100,000 marine creatures are dying from this and on top of this, over 1 million sea-birds are dying from plastic waste!
<span class="NanumH1">The solution...</span>
As it's almost impossible to remove these toxic microplastics from the ocean, prevention is the key and the way forward - <span style="color: green; font-weight: bold;">REDUCE, REUSE, RECYCLE</span>.
It's easy to get started and you might even save money!

var myIndex = 0;

function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
if (myIndex > x.length) {myIndex = 1}
x[myIndex-1].style.display = "block";
setTimeout(carousel, 2500); // Change image every 2 seconds

Any help would be greatly appreciated.
Shopify Partner
11 2 0

Hi ZeroWasteCo,


Add this file to sections folder in your theme code. Then show it up on homepage like other section.


Hope it can help.

We're Simesy. We build a successful online store for your business.

Awesome, thanks. That has worked..... But where do I put it so that it can appear between sections on my homepage?

I was able to add it to the footer and it worked, but can't find the file that I need to add it to, to get it on my homepage?!




Don't worry, got it worked out - add it to the json file!