Amyj Posted November 22, 2022 Posted November 22, 2022 Hello, Please see attached screenshots. We have an error code on our website: 'Error parsing Custom CSS, verify Custom CSS is valid' the error then states that 'Syntax error on line 21' Is anyone able to help me with this issue please as we thought we did not have any coding on our website. Any help greatly appreciated. Many thanks Amy
Solution paul2009 Posted November 22, 2022 Solution Posted November 22, 2022 (edited) 12 minutes ago, Amyj said: We have an error code on our website: 'Syntax error on line 21' This is because you have unknowingly added some HTML to your Custom CSS panel. This panel is only for CSS, so you'll need to remove the HTML. The error explains where to find the problem - it is line 21. The opening style tag ('<style>') is HTML, not CSS. When used in a different panel (known as Code Injection) it tells the browser to expect some CSS to follow and it works fine. However, when you are adding CSS directly to the Custom CSS panel, this panel only allows CSS, so it doesn't need the style tag and gets confused when it finds it! If you have any tags (words within angled brackets) you'll want to remove them and save your changes. Did this help? Please give feedback by clicking an icon below ⬇️ Edited November 22, 2022 by paul2009 tuanphan and Amyj 2 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Amyj Posted November 22, 2022 Author Posted November 22, 2022 Thank you @paul2009your help is appreciated. So i need to remove <style> completely? Will this cause any further issues? Many thanks again Amy
paul2009 Posted November 22, 2022 Posted November 22, 2022 1 minute ago, Amyj said: So i need to remove <style> completely? Yes. And there's probably a second 'closing' tag to remove too, but we can't see that in your screenshot. Amyj 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Amyj Posted November 22, 2022 Author Posted November 22, 2022 Hello @paul2009thank you! Do you know where i can find the second 'closing' tag so I can screenshot for you? Would this issue be affecting our instagram shop? Many thanks Amy
paul2009 Posted November 22, 2022 Posted November 22, 2022 3 minutes ago, Amyj said: Do you know where i can find the second 'closing' tag If it is there, you should see a different error message after you delete the first one 🙂 Amyj 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Amyj Posted November 22, 2022 Author Posted November 22, 2022 Hi @paul2009 so I have deleted and no other error message has appeared! And the issue we were having seems to be rectified. Thank you so much! Should I expect for another error message to appear? Thanks Amy
paul2009 Posted November 22, 2022 Posted November 22, 2022 2 hours ago, Amyj said: the issue we were having seems to be rectified. Thank you so much! Great, pleased I could help. Amyj 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment