Quick setup: global custom code
Add site-wide scripts without breaking page behavior.
- Open your site in the dashboard.
- Go to Settings → Header code / Footer code.
- Paste critical scripts in Header and non-critical scripts in Footer.
- Save and test on the preview link or the published site.
- Use Header for early setup scripts.
- Use Footer for deferred widgets and non-critical scripts.
- Your own scripts are files in the editor's Scripts panel (assets/*.js): load one on every page, or link it from a single page. They run on the preview and the live site, not in the editor canvas.
- Section-level code is a <script> or {% javascript %} block in that section's markup.