Change WhatsApp link depending daytime

I was wondering, how hard could be to change the link of a WhatsApp button depending users clock?
For example, from the morning until midday you have a certain link, and in the afternoon another link?
Some JS that plays with toggle visibility maybe?

1 Like

I’ve done something similar last year where a countdown clock was replaced with a registration button. You need 2 buttons, one set to display: block and the second to display: none and a little script which changes the visibility of each block based on your, or the visitor’s timezone.

1 Like

Great, I will look forward that script