Change the Order of the Date in a Form

What does this code do?

This code snippet will allow you to change the date to Day, Month, Year in a form in Squarespace.

 

Code Snippet

Copy and paste the following code at the top of Settings > Advanced > Code Injection > Footer.

<!-- Order of Day and Month in Form --> <script> (function () { var day = document.querySelector(".day"); var date = document.querySelector(".date"); date.insertBefore(day, date.childNodes[0]); })(); </script>
 

How To Use It

  1. Copy and paste the code as indicated above.

Rebecca Grace

Rebecca Grace is a Squarespace CSS Expert and Website Designer.

https://rebeccagracedesigns.com
Previous
Previous

Change the Width of the Mobile Menu

Next
Next

Video Captions on Hover