Jump to content

Image disappears on Calendar Event Day Mobile

Recommended Posts

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
.yui3-squarespacecalendar .compact-layout .background {
	display: flex !important;
}
.yui3-squarespacecalendar .compact-layout .marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
}

 

Edited by tuanphan
update new code

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
  • 2 months later...

I'm having the same problem on my site, and this CSS mod didn't help, it just moved the day number outside the box and still didn't make the image show. Is there anything else I can do? I've had to list the events below the calendar as text links so that users can still click on them from a mobile, which means the calendar is kind of pointless.

https://parmenterforge.co.uk/course-calendar

Edited by ParmenterForge
Link to comment
6 hours ago, ParmenterForge said:

I'm having the same problem on my site, and this CSS mod didn't help, it just moved the day number outside the box and still didn't make the image show. Is there anything else I can do? I've had to list the events below the calendar as text links so that users can still click on them from a mobile, which means the calendar is kind of pointless.

https://parmenterforge.co.uk/course-calendar

Updated the code. You can check it again

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
  • 3 weeks later...
15 hours ago, ParmenterForge said:

That's definitely helped - thanks! Is there a way to highlight the events in the calendar with, say, a white outline or a lighter coloured square? My events are apprearing as a grey day in a black calendar, so kind of hard to spot.

You solved?

image.thumb.png.688de96bfe12b7db6931e66aad09d55d.png

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 8/2/2022 at 11:21 PM, ParmenterForge said:

Looks fine on PC, but on an iPhone it looks like this:

image.thumb.png.aa4e2de401d188e388ec3094f7a12432.png

Add to Design > Custom CSS

@media screen and (max-width:767px) {
td.has-event .marker div {
    color: white !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

Hey!

I'm running into the same issue with my calendar. I used the code above and it does show the image now on mobile, but now my desktop site doesn't show images. Also with mobile it doesn't show the entire image, just a small corner of it. 

 

edit: So it works on the squarespace website itself when you swap between desktop and mobile view. But once you actually pull it up on a phone it still shows the dark imageless tiles for those dates. 

 

squarespace site view: https://gyazo.com/56e66703e9d21cc4f336f9a5a9291bfa

 

actual mobile view: https://gyazo.com/2f7fb191565f145fce6d96fbba6d5117

 

link to site: https://www.wiz4rdssleev3s.com/events

Edited by JodoroIsamov
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.