Hello,
I’m trying to create countdown timer as HTML block to use in popup. The counter is not visible in the popup and the browser console shows the following error Uncaught ReferenceError: moment is not defined
Thanks, now it works. I’m just wondering if this is something that will be included by default in the next update or this is just how it works? I mean should I keep this in my functions.php forever ?
Yes, you need to keep the code if you want to use the countdown in the promo popup. Or you can enable Combine JS option in Theme Settings -> Performance.