g-souza Posted July 7, 2022 Share Posted July 7, 2022 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: 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: Any help is much appreciated! password: central2022 Link to comment
tuanphan Posted July 8, 2022 Share Posted July 8, 2022 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
g-souza Posted July 8, 2022 Author Share Posted July 8, 2022 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! Link to comment
tuanphan Posted July 10, 2022 Share Posted July 10, 2022 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
g-souza Posted July 11, 2022 Author Share Posted July 11, 2022 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
tuanphan Posted July 12, 2022 Share Posted July 12, 2022 17 hours ago, g-souza said: Thank you again, @tuanphan! The image of the first event is fine now. Is it possible to do the same with the second event? You mean do this for first + second only? 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
g-souza Posted July 12, 2022 Author Share Posted July 12, 2022 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
tuanphan Posted July 14, 2022 Share Posted July 14, 2022 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! 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
g-souza Posted July 14, 2022 Author Share Posted July 14, 2022 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment