Since we don’t have much access to the code in clickfunnels we have to resort to javascript. Here is a quick little snippet to add current date within funnels in javascript using moment.js You can use it for something like offers expire today etc.
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script> <script> const date = moment().format("dddd, MMMM Do YYYY"); const text = document.querySelector("#headline-83485 > h2"); text.textContent += date; </script>
In text above we are getting the HTML element where we want to add the code. Change it according to your requirement. Rest is pretty simple and self explanatory.
Recent Comments