Jump to content

Two questions! List section and Gallery height

Go to solution Solved by tuanphan,

Recommended Posts

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
  • Replies 5
  • Views 329
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

With the height of section, have you tried changing it via the section style of editor?

image.thumb.png.f11d24cf283864b8fcf30ae22a4924b1.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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
  • Solution
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

@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

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.