On the home page of the website, 6 square images appear that inform the visitor about the weekly programming of the club. My client requests that in the first position on the top left there is always the flyer of the current day and that in succession there are all the other flyers, obviously previously loaded.
The site is developed on the Avada theme.
It is therefore necessary to develop some code that allows the change of flyers every night at 2 am according to the infomations indicated above.
- There is no flyer for today or for the following days: it is not shown.
- There is no flyer for the following days: the section is hidden.
Pay attention to these aspects:
- It is necessary to maintain the same current behavior of the frontend, with a flyer that appears and a second that opens when the lightbox is opened
- Flyers can cover a day or two, so it will be necessary to provide for the possibility of associating one or two dates with a flyer.