Jump to content

how to hide the message "*Accordion Page Settings*/"

Go to solution Solved by paul2009,

Recommended Posts

It sounds like you are missing a “/“ just before this text. Look for the line of text wherever you inserted the code. If you need help, please provide a working link to the page. 

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.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
  • 2 weeks later...
  • Solution

As @jaeveedee explained above, these aren't the correct comment tags to use for HTML. You can use "/* and "*/" within a script, or within CSS, but not HTML. Your HTML (in code injection) looks like this:

/*Accordion Page Settings*/
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

The first line should look like this:

<!-- Accordion Page Settings -->

Also, for completeness, I should mention that the second line of your code is loading a very old version (version 3.3.1 from 2018!) of jQuery that has known security vulnerabilities. It would be better to load a more recent version. For example, to use version 3.7.1, you could use:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous"></script>

I hope this helps!

Did this help? Please give feedback by clicking an icon below  ⬇️

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.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
  • 3 weeks later...

@paul2009 Thank you so much for your detail information! Imade it finally.
I understand the difference of comment tag between on HTML and CSS. Once I tried the new script that you recommend, but it did't work properly, and I found another newer script and it's done. Thank you for your help! Your patient and precise support is so special for me like a beginner.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.