torilistoe Posted September 29, 2021 Share Posted September 29, 2021 Site URL: http://www.storiesthroughtori.com Hi there. I have a markdown block on my FAQ page that works like magic (you arrive on the page and are able to click the options to open them). However, when arriving to my Session Investment and Pricing Guide page, the markdown block remains open (it will not collapse and you do not get a chance to manually open it). I've searched Youtube and reached out to SS with no luck yet. Help! What is going on here? Here is the specific page link: https://www.storiesthroughtori.com/session-investment-and-pricing-guide Beyondspace 1 Link to comment
paul2009 Posted September 29, 2021 Share Posted September 29, 2021 There is an issue on the FAQ page too. You have two copies of the accordion code installed, one appears to be in the header and another is in a Code Block. You only need one. Also, please note that you've used an old snippet of code that uses an old version of jQuery (v1) that has security vulnerabilities. It would be safer to use the latest version. About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
torilistoe Posted September 29, 2021 Author Share Posted September 29, 2021 40 minutes ago, paul2009 said: There is an issue on the FAQ page too. You have two copies of the accordion code installed, one appears to be in the header and another is in a Code Block. You only need one. Also, please note that you've used an old snippet of code that uses an old version of jQuery (v1) that has security vulnerabilities. It would be safer to use the latest version. Unfortunately the markdown on the FAQ won't collapse without that second code. Also, I'm no code expert (actually I have no idea how it really works) thereby the "old" version is being used simply because I have no other option. Can you perhaps link a better, more safe resource I can use? My initial issue with the Session Investment and Pricing Guide still stands. Link to comment
Solution Beyondspace Posted September 30, 2021 Solution Share Posted September 30, 2021 12 hours ago, torilistoe said: Site URL: http://www.storiesthroughtori.com Hi there. I have a markdown block on my FAQ page that works like magic (you arrive on the page and are able to click the options to open them). However, when arriving to my Session Investment and Pricing Guide page, the markdown block remains open (it will not collapse and you do not get a chance to manually open it). I've searched Youtube and reached out to SS with no luck yet. Help! What is going on here? Here is the specific page link: https://www.storiesthroughtori.com/session-investment-and-pricing-guide Thanks to Paul's tips, here is what I can see: 1. You have duplication of the markdown dropdown, one in the header and another you placed it on top of the accordion under a code block, kindly remove that code block 2. In the header injection in Settings->Advanced->Code Injection->Header, find the string <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> and replace it with this <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script> BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
torilistoe Posted September 30, 2021 Author Share Posted September 30, 2021 14 hours ago, bangank36 said: Thanks to Paul's tips, here is what I can see: 1. You have duplication of the markdown dropdown, one in the header and another you placed it on top of the accordion under a code block, kindly remove that code block 2. In the header injection in Settings->Advanced->Code Injection->Header, find the string <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> and replace it with this <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script> Such an easy to follow solution. Thank you so much! My markdown issue has been resolved. Yay! I appreciate your feedback. 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