Hi everyone! I’m trying to display an automatically updating date on my Funnelish page (visible both on desktop and mobile).
Here’s exactly what I want to do:
Show the date in French, with this format: “Le 18 Juillet 2025” (day + month written in full + year)
The date should update automatically every day.
I want to place it inline inside a sentence like: Le 18 Juillet 2025
I tried using JavaScript inside a custom HTML block, but it doesn’t seem to update properly on mobile. Sometimes I only see “Chargement…” and the date doesn’t appear.
Has anyone successfully implemented something similar in Funnelish?
Any tips or working codes would be super appreciated!
I’ve also followed some tutorial on youtube but it still doesn’t work.
Hey @ynguido Welcome to the community and thanks for the detailed post — that really helps!
To get your dynamic date working reliably across both desktop and mobile, especially in Funnelish, here’s the theoretical approach I recommend:
Step 1 – Add your JavaScript code
Place your date code insideCustom Code > Body HTML, wrapped in <script></script>.
Do not place it in multiple custom HTML blocks — use it once globally.
Step 2 – Use a custom class in your paragraph
For example, in your Funnelish text block, write:
Here, we’ve wrapped the dynamic part (Chargement…) in a <strong> tag for easy targeting.
Step 3 – Target this with JavaScript
Then, in your script (in Custom Code > Body HTML), use this selector:
document.querySelectorAll('.ithasData strong')
This way, you can dynamically insert the current date in French format using JavaScript and replace the “Chargement…” placeholder.
To help you further, could you please share a preview or live URL, or maybe a short screen recording of how you’ve implemented it so far? That will help us give you the most accurate fix!
Let me know if you want the full code — happy to help!
Sure! Here’s a clean JavaScript snippet you can place inside Custom Code > Body HTML (wrapped in <script> tags) to automatically display today’s date in French format, like Le 19 Juillet 2025: