I am completely new to coding and use Chat GPT to write my code.
I am trying to create a widget that automatically lets 4 png files change every 4 seconds.
In my case, the files all have the same format, I only want that a small aspect of my brand logo changes into different colours every 4 seconds, which is why I use 4 different images with all the different colour changes.
I saved the png’s into the beginning default folder of wix called ‘Site Files’. Is this the same as ‘media’ used by Chat GPT?
What could be the problem why the images are not visually appearing?
I have asked Chat GPT to create code for different widgets using images as well and images are never appearing.
It looks looks fine. Are you sure the links themselves are not broken? It there an error in the console? If you open the browser dev tools network tab and look at the image requests, what do you see?
thank you very much for your help!!
There is no error in the Wix HTML console, however I dont even know how to identify an error because when I type something completely random and press ‘update’, it looks the same with no error message.
If I highlight the first link above and click ‘inspect’ (I hope that’s what you mean), this appears:
Thank you very much for your help! When I entered your code, it worked! When I asked ChatGPT to change the code so the images randomly and automatically change every 4 seconds, removing the function of changing the images by hovering over them, it gave me this and it worked yeyyy
Pic-Test
However, I would like use the images from my wix media library (not stored in folders). When I do so by using links like this ‘https://static.wixstatic.com/media/logo1.png’, it does not work.
What do I need to change in the file path link so I can use images from my main wix media folder? The names of the images are: logo1.png, logo2.png, logo3.png and logo4.png.
So at this point ChatGPT gave-up?
A good-coder never gives-up
How ever, if you want to establish a communication between your page and your HTML-Component, you will need the following… read it and try to understand how it works…
Ohhh thank you it worked!! The problem at the end was that I used the image names in the wix media folder instead of the link that you can get for each image when clicking the three dots.