Amyj Posted November 22, 2022 Share 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 Link to comment
Solution paul2009 Posted November 22, 2022 Solution Share 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 Amyj and tuanphan 2 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Amyj Posted November 22, 2022 Author Share 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 Link to comment
paul2009 Posted November 22, 2022 Share 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 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Amyj Posted November 22, 2022 Author Share 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 Link to comment
paul2009 Posted November 22, 2022 Share 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 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Amyj Posted November 22, 2022 Author Share 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 Link to comment
paul2009 Posted November 22, 2022 Share 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 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment