CCavanagh Posted October 22, 2019 Share Posted October 22, 2019 I have an events page with a standard Squarespace calendar on it. When viewed on a desktop the tiles display the images that I have chosen, however, when viewed on a tablet or a phone the tiles just show a darker shade of grey. Is there a way that I can colour code the events (by category if possible) so that even if the image doesn't show the category of the event will be apparent. Thank you in advance for any helpful advice. Link to comment
tuanphan Posted October 24, 2019 Share Posted October 24, 2019 @CCavanagh Have you solved the problem yet? If no, can you share site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
CFlo Posted April 18, 2022 Share Posted April 18, 2022 Wondering if anyone has a solution to this? I'm experiencing the same issue littlebitofeverythingdiystudio.com Link to comment
tuanphan Posted April 22, 2022 Share Posted April 22, 2022 On 4/19/2022 at 12:41 AM, CFlo said: Wondering if anyone has a solution to this? I'm experiencing the same issue littlebitofeverythingdiystudio.com Try adding to Design > Custom CSS @media screen and (max-width:767px) { .yui3-squarespacecalendar .compact-layout .background { display: flex !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
hannah.dossary Posted July 12, 2022 Share Posted July 12, 2022 hey @tuanphan thanks for the code! it didnt seem to work but i adjusted it to: @media screen and (max-width:767px) { .yui3-squarespacecalendar .compact-layout .background { display: block !important; } } and it seems to start doing something! Although the day markers are now showing off-aligned. Do you know what i can do to bring them back up to centre of the background image? Website: https://www.supervision4therapists.com/schedule Password: test Thank you! Link to comment
tuanphan Posted July 13, 2022 Share Posted July 13, 2022 On 7/12/2022 at 7:06 PM, hannah.dossary said: hey @tuanphan thanks for the code! it didnt seem to work but i adjusted it to: @media screen and (max-width:767px) { .yui3-squarespacecalendar .compact-layout .background { display: block !important; } } and it seems to start doing something! Although the day markers are now showing off-aligned. Do you know what i can do to bring them back up to centre of the background image? Website: https://www.supervision4therapists.com/schedule Password: test Thank you! Use this code @media screen and (max-width:767px) { .yui3-squarespacecalendar .compact-layout .background { display: block !important; } .yui3-squarespacecalendar .compact-layout .marker { position: absolute !important; top: 50%; left: 50%; transform: translate(-50%,-50%); } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
mjai Posted January 25 Share Posted January 25 On 7/13/2022 at 9:07 AM, tuanphan said: Use this code @media screen and (max-width:767px) { .yui3-squarespacecalendar .compact-layout .background { display: block !important; } .yui3-squarespacecalendar .compact-layout .marker { position: absolute !important; top: 50%; left: 50%; transform: translate(-50%,-50%); } } Hi @tuanphan Thanks as always for your guidance. I tried the above code and while it works on the 'mobile view' inside Squarespace, on iphone in normal vertical view the event date squares are still showing up as light grey. When I turn the phone sideways the colored dates appear the way I'd like them. Is there a fix for lower width px display? Is it a breakpoint issue? Here's the website: https://maroon-goby-bew9.squarespace.com/calendar password is: 252525 Link to comment
Accomplice Posted April 14 Share Posted April 14 Is there any update / fix to this? Kinda frustrating to be paying for something that acts so broken. Link to comment
tuanphan Posted April 19 Share Posted April 19 On 1/26/2023 at 3:32 AM, mjai said: Hi @tuanphan Thanks as always for your guidance. I tried the above code and while it works on the 'mobile view' inside Squarespace, on iphone in normal vertical view the event date squares are still showing up as light grey. When I turn the phone sideways the colored dates appear the way I'd like them. Is there a fix for lower width px display? Is it a breakpoint issue? Here's the website: https://maroon-goby-bew9.squarespace.com/calendar password is: 252525 Hi, SS hide images on mobile so no way to show image on mobile view. However you can consider using this approach First, to show Yellow Color (7 in screenshot) add this to Design > Custom CSS /* Mobile Calendar */ @media screen and (max-width:767px) { .has-event { background-color: #f2b705 !important; } } Next, with Pink event, add pink at the end of Event URL, for example event 11 has url: /events/mutual-mondays-4sf9a change it to /events/mutual-mondays-4sf9a-pink then add this code to Design > Custom CSS @media screen and (max-width:767px) { a.background-image-link[href*="pink"] { background-color: #f26bdc !important; } .has-event * { color: white !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Lorvette Posted May 28 Share Posted May 28 Hi @tuanphan. Thanks for the above code but we copy/pasted and are trying it as-is and it is not recognizing the link through the href to my event. All my events dates are still coloured orange, nothing pink even though the URL was updated to end in "-pink". Any suggestions? Link to comment
tuanphan Posted May 28 Share Posted May 28 6 hours ago, Lorvette said: Hi @tuanphan. Thanks for the above code but we copy/pasted and are trying it as-is and it is not recognizing the link through the href to my event. All my events dates are still coloured orange, nothing pink even though the URL was updated to end in "-pink". Any suggestions? What is your site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Lorvette Posted May 28 Share Posted May 28 (edited) Thanks @tuanphan my site is h2hcottageco.com. But, here is the URL to the calendar page. I have not yet linked it to my main navigation yet until it is working. https://h2hcottageco.com/kennisis-lake-availability-calendar i only see only the originally orange (but now i changed them to green...) squares on mobile phone for all the events. I'm not seeing the pink squares for the event with "pink" added to the event name which is: /kennisis-lake-availability-events/event-two-nme24-pink and here is the CSS code I am using: /* Mobile Calendar */ @media screen and (max-width:767px) { .has-event { background-color: #f2b705 !important; } } @media screen and (max-width:767px) { a.background-image-link [href*="pink"] { background-color: #f26bdc !important; } .has-event * { color: white !important; } } Edited May 28 by Lorvette Link to comment
Lorvette Posted Monday at 03:51 PM Share Posted Monday at 03:51 PM thanks so much for looking at this @tuanphan. Any luck yet? Essentially I want to be able to have potential cottage rental guests be able to see my availability dates on my calendar. At a bare minimum this is what I need. I'm open to any other suggestions you may have if this code cannot work? Thanks Laura Link to comment
tuanphan Posted Thursday at 01:38 PM Share Posted Thursday at 01:38 PM On 5/28/2023 at 9:49 PM, Lorvette said: Thanks @tuanphan my site is h2hcottageco.com. But, here is the URL to the calendar page. I have not yet linked it to my main navigation yet until it is working. https://h2hcottageco.com/kennisis-lake-availability-calendar i only see only the originally orange (but now i changed them to green...) squares on mobile phone for all the events. I'm not seeing the pink squares for the event with "pink" added to the event name which is: /kennisis-lake-availability-events/event-two-nme24-pink and here is the CSS code I am using: /* Mobile Calendar */ @media screen and (max-width:767px) { .has-event { background-color: #f2b705 !important; } } @media screen and (max-width:767px) { a.background-image-link [href*="pink"] { background-color: #f26bdc !important; } .has-event * { color: white !important; } } Try this new code /* Mobile Calendar */ @media screen and (max-width:767px) { a.background-image-link[href*="pink"] { background-color: #f26bdc !important; } a.background-image-link[href*="pink"] img { opacity: 0 !important; } .has-event * { color: white !important; } .yui3-squarespacecalendar .compact-layout .background { display: block !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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