Good evening JonathanĀ and welcome to the Events Calendar Support forum!
Thank you for reaching out to us.
I would love to help you with this topic.
Just to set expectations, the scope of our support is mostly to get our customers started on the right track and to help them in case of issues.
We unfortunately do not provide complete support for customization.
With that in mind, would you mind sharing your custom piece of code so that I can take a look at it (in a private reply perhaps) ?
Could you also please provide us with your complete system information in a private reply using the instructions found in the following link?
https://theeventscalendar.com/knowledgebase/sharing-sys-info/
Best regards,
Geoff B.