Not sure if this is a bug, but at the moment I can’t seem to get JS to work in Studio pages. This hinders some of the small improvements I am trying to make on the pages. Only way to add some scripts is by adding them to all pages, but this is not what I want since I am not adding any Google / Meta tracking pixels or anything like that but just plain old JS to pages directly.
At the moment, HTML blocks inside Studio pages support HTML and CSS only. They do not execute JavaScript.
If you need to run custom scripts, this can currently only be done from your Studio Settings under the Website Code Injection section. Code added there will apply at the site level rather than to individual pages.
Thank you for raising this. I understand the limitation you’re describing. I’ll move this thread to the Feature Requests and share it with the team for consideration.