Common issues with custom code
As you begin exploring the ways you can push your website beyond the built-in features and design tools, there are a few common pitfalls to be aware of. Outside of run-of-the-mill issues such as misspelling and copy/paste errors, there are three common issues that will prevent code from working – using code built for a different version of Squarespace, using incorrect syntax, or placing code in the wrong place.
If you have issues adding code to your website, go through this list to try and troubleshoot:
- Is your code in the right place? For example, if you’re trying to add HTML or Javascript to the CSS editor, it won’t work.
- Are you wrapping your code in the right tags?
- Are you wrapping code in the CSS editor with
<
style>
tags? - Is your spelling correct?
- Are you using code snippets written for the version of Squarespace you’re using?
- Do you need to add
!important
to your CSS? - Do you have...