Jump to content

Changing image aspect ratio for events calendar PLUS event calendar display style

Recommended Posts

Posted

Hello, how do I change the aspect ratio for images on my events/calendar page? I would like images for events to be displayed in a 1:1 aspect ratio rather than the current landscape format.

thegalaslc.com/calendar

image.thumb.png.5e81715573a1736bb7379ba9b2ecd99e.png

Secondly, on desktop, it shows images on the calendar for each Day's event. However, on mobile, I don't see these images. How do I make sure the calendar shows up like this on mobile? The below image is what I want.

image.thumb.png.63b82a8973ef1f17263cff3ac5b85978.png

This image is what mobile users currently see and is what I want to change.

image.png.9369d22234390af4487f166127c83b09.png

Thank you very much for your help!

  • Replies 3
  • Views 274
  • Created
  • Last Reply

Top Posters In This Topic

Posted

#1. You try adding this to Website Tools > Custom CSS

.tweak-events-stacked-thumbnail-size-32-standard .eventlist-column-thumbnail {
    padding-bottom: unset !important;
    height: auto !important;
}
.eventlist-column-thumbnail img {
    object-fit: contain !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!)

Posted
On 11/19/2024 at 1:38 AM, tuanphan said:

#1. You try adding this to Website Tools > Custom CSS

.tweak-events-stacked-thumbnail-size-32-standard .eventlist-column-thumbnail {
    padding-bottom: unset !important;
    height: auto !important;
}
.eventlist-column-thumbnail img {
    object-fit: contain !important;
}

 

Hey Tuanphan, appreciate the help!

Do you have any questions on the calendar front? If using the event the pics on calendar days on mobile isn't feasible, can you help me change the color of days that have events on them? Currently it's very low contrast and hard to see. If I can add a white background to days with events (white square, black text) that would be perfect.

image.png.05a16443aa2761cbf63b80afa51857b1.png

Posted
On 11/23/2024 at 3:57 AM, issakamacd said:

Hey Tuanphan, appreciate the help!

Do you have any questions on the calendar front? If using the event the pics on calendar days on mobile isn't feasible, can you help me change the color of days that have events on them? Currently it's very low contrast and hard to see. If I can add a white background to days with events (white square, black text) that would be perfect.

image.png.05a16443aa2761cbf63b80afa51857b1.png

You can use CSS code like this

@media screen and (max-width:767px) {
    td.has-event * {
    color: #000 !important;
}
    td.has-event {
        background-color: #fff !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!)

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.