@Cassie Thank you very much. 🤩
You are a code superhero. It kinda makes more sense for me when you write the code up like you just did compared to the other I have put together.
It is a good question actually - I guess it should work, you apply the coding into the head and footer area and it would properly be better for the overall stability in the long run but what I have noticed is, that people tend to target divs and then implement GSAP, jquery and so on. My best guess is that DOM tweaking can *%$# up the predefined templates somehow. I know there is a way to enter the backend but I do not dare to go in there 😅 😂
See the attached images of the code injection area within squarespace if you are interested.