Set Up
I have an image on my site that I want to change every hour.
I am using a setinterval and refresh on a dataset to change the image but…
Problem
The changed in image will only display on front end if the visitor refreshes browser.
I need this to be passive.
Is there something I can code that will change the front end image when it changes at the back end without the visitor having to refresh their browser?
It is basically an “on air now” image on the home page that needs to change when the show changes.
Caveat
I have NO coding experience so please try to answer in as simple terms as possible. I have asked this a few times with no joy and someone suggested Datahooks and when I asked for some more info, the thread went dead again.
Thank you.
There is no “simple” way to do this, it will require coding…
You can use the wix-realtime API. As stated in the documentation:
Using the Realtime API you can create channels and channel resources where messages can be published. Site visitors who subscribe to a channel receive the messages published to that channel. When a message is received you can handle the message any way you choose, such as displaying the contents of the message or changing the state of page elements depending on the contents of the message. You can also manage the permissions of who can read from specific channels.
You can create a channel for your “on air now” messages, and then display or hide the on air now text on the screen.
Perhaps you can hire a Wix Velo Expert to do this for you.
Thanks. I have read that but I just can’t understand it. It starts simple enough and then decends into techno-babble that I am trying to learn.
“You can create a channel for your “on air now” messages, and then display or hide the on air now text on the screen.”
Like I said, it looks like that would work but I can’t even see how I create a channel or how I would display the message from a query result every hour and also not just subscribers but visitors who aren’t logged in.
I cannot afford a developer (fiver anyone?) and am trying to learn from various resources but cannot find a simple enough starting point.
Seems a lot of hassle for something so simple - update an image at front end.
@darrentomalin ive the same problem all i want to do is make a image change hourly on my home page its driving me mental that something that should be a simple automation no one seems to have the answer … mate if youve managed to solve this could you please help me before i throw my laptop out the window