Kuulei Posted June 15, 2022 Share Posted June 15, 2022 Site URL: https://venturatherapycollective.squarespace.com/ Hello! I am working on team page for a client and I used a list template to create it. I love the look, but now my client is requesting that I hide the list summary and make it collapsible like an accordion to shorten the page length. Anyone know how to do that? I've looked for code everywhere and can't find one that works. Also, what code can I use to shorten the height of the gallery section on my about page? There's a lot of dead space between the page title section and the gallery. Thank you for all the feedback! https://venturatherapycollective.squarespace.com/ Password: Ventura Link to comment
Beyondspace Posted June 15, 2022 Share Posted June 15, 2022 37 minutes ago, Kuulei said: Site URL: https://venturatherapycollective.squarespace.com/ Hello! I am working on team page for a client and I used a list template to create it. I love the look, but now my client is requesting that I hide the list summary and make it collapsible like an accordion to shorten the page length. Anyone know how to do that? I've looked for code everywhere and can't find one that works. Also, what code can I use to shorten the height of the gallery section on my about page? There's a lot of dead space between the page title section and the gallery. Thank you for all the feedback! https://venturatherapycollective.squarespace.com/ Password: Ventura Do you mean adding the read more, read less on the summary? Kindly refer the solution in this post BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Beyondspace Posted June 15, 2022 Share Posted June 15, 2022 With the height of section, have you tried changing it via the section style of editor? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Solution tuanphan Posted June 15, 2022 Solution Share Posted June 15, 2022 3 hours ago, Kuulei said: Site URL: https://venturatherapycollective.squarespace.com/ Hello! I am working on team page for a client and I used a list template to create it. I love the look, but now my client is requesting that I hide the list summary and make it collapsible like an accordion to shorten the page length. Anyone know how to do that? I've looked for code everywhere and can't find one that works. Also, what code can I use to shorten the height of the gallery section on my about page? There's a lot of dead space between the page title section and the gallery. Thank you for all the feedback! https://venturatherapycollective.squarespace.com/ Password: Ventura Something like this demo? Pass: abc If yes, add this code to Page Header (page where you used list section) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('li.list-item').each(function(i, e) { $(this).click(function() { $(this).toggleClass('tp-list-des-open'); }); }) }); </script> <style> .list-item-media:hover, h2.list-item-content__title:hover { cursor: pointer; } .list-item-content__description { height: 0; overflow: hidden; transition: all 0.1s ease; } .tp-list-des-open .list-item-content__description { height: 100%; transition: all 0.1s ease; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Kuulei Posted June 15, 2022 Author Share Posted June 15, 2022 @bangank36 Thank you for your help! I added the code injection from the read more tutorial but it isn't working. Could it because my team page was made with a list section and not text boxes? Also, the list section doesn't allow me to adjust the section height like other block sections. Does that makes sense? Link to comment
Kuulei Posted June 15, 2022 Author Share Posted June 15, 2022 @tuanphan Thank you! That worked great! tuanphan 1 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