Jump to content

change events page thumbnail to banner on 7.1

Recommended Posts

Site URL: https://sawfish-lute-xb5x.squarespace.com

Hi there!

I'm trying to find a solution to change the width of thumbnails on events list page.

I currently have this:

image.thumb.png.4208c7faf4c0db39d039dc88bba6f545.png

 

I'd like to: 1) have a wider image (same width as the site); 2) place the text above the image; 3) filter this section to display only event marked as "featured". Something like this:

 

image.thumb.png.890a3611a39c43e39fd293a905f07a90.png

 

Any help is much appreciated!

 

password: central2022

Link to comment
  • Replies 8
  • Views 490
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

.eventlist-event:first-of-type {
    flex-direction: column-reverse;
}
.eventlist-column-info {
    padding-left: 0;
}
.eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;}
.tweak-events-stacked-thumbnail-size-11-square .eventlist-column-thumbnail {
    width: 100% !important;
}

 

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
14 hours ago, tuanphan said:

Add to Design > Custom CSS

.eventlist-event:first-of-type {
    flex-direction: column-reverse;
}
.eventlist-column-info {
    padding-left: 0;
}
.eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;}
.tweak-events-stacked-thumbnail-size-11-square .eventlist-column-thumbnail {
    width: 100% !important;
}

 

Thanks @tuanphan 🙂
 

I wonder if it's possible to set the image height as well? Preferably to keep 16:9 aspect ratio.

Also, I created another featured event to check how it'd look. I noticed the code is not applying to the second thumbnail:

Thanks again!

 

Screen Shot 2022-07-08 at 19.04.09.png

Link to comment

Try this new code

.eventlist-event:first-child {
    flex-direction: column-reverse;
}
.eventlist-event:first-child .eventlist-column-info {
    padding-left: 0;
}
.eventlist-event:first-child .eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;
}
.eventlist-event:first-child .eventlist-column-thumbnail {
    width: 100% !important;
	padding-bottom: 50% !important;
}

 

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
On 7/9/2022 at 11:34 PM, tuanphan said:

Try this new code

.eventlist-event:first-child {
    flex-direction: column-reverse;
}
.eventlist-event:first-child .eventlist-column-info {
    padding-left: 0;
}
.eventlist-event:first-child .eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;
}
.eventlist-event:first-child .eventlist-column-thumbnail {
    width: 100% !important;
	padding-bottom: 50% !important;
}

 

Thank you again, @tuanphan!

The image of the first event is fine now. Is it possible to do the same with the second event?

Link to comment
12 hours ago, tuanphan said:

You mean do this for first + second only?

Preferably all events marked as "featured". But I'm not sure if it's possible... If it's something complex to achieve, I'd rather find a different workaround. Thanks for your help!

Link to comment
On 7/9/2022 at 5:10 AM, g-souza said:

Thanks @tuanphan 🙂
 

I wonder if it's possible to set the image height as well? Preferably to keep 16:9 aspect ratio.

Also, I created another featured event to check how it'd look. I noticed the code is not applying to the second thumbnail:

Thanks again!

 

Screen Shot 2022-07-08 at 19.04.09.png

I think I misread your question. Use this new code

.eventlist-event {
    flex-direction: column-reverse;
}
.eventlist-column-info {
    padding-left: 0;
}
.eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;}

.eventlist-event .eventlist-column-thumbnail {
    width: 100% !important;
	padding-bottom: 50% !important;
}

 

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
12 hours ago, tuanphan said:

I think I misread your question. Use this new code

.eventlist-event {
    flex-direction: column-reverse;
}
.eventlist-column-info {
    padding-left: 0;
}
.eventlist-column-thumbnail img {
    width: 100% !important;
    height: auto !important;}

.eventlist-event .eventlist-column-thumbnail {
    width: 100% !important;
	padding-bottom: 50% !important;
}

 

many many thanks @tuanphan!
:-)

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.