Jump to content

Show only first image in two day event in calendar

Recommended Posts

  • Replies 7
  • Views 410
  • Created
  • Last Reply

Top Posters In This Topic

412847361_ScreenShot2022-08-28at11_09_21AM.png.c06e7eb57b66aab3f28ae1c33dc353b9.png

Please see Calendar Block Event Multiday Class Add.

Above all that code install the following.

<style>

  .yui3-calendar-day:not( .twc-cbemca-multiday-1 ) .background {
  
    display : none;
    
    }
    
  .yui3-calendar-day:not( .twc-cbemca-multiday-1 ) .background ~ .itemlist {
  
    display : block;
    
    }
    
  .yui3-calendar-day:not( .twc-cbemca-multiday-1 ) .background + .marker {
  
    background-color : unset
    
    }
    
  </style>

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

In the calendar block event change code you installed in step 1 of the instructions you will find the following lines.

    const itemCallbacks = [
    
      [enter function name here replacing square brackets or remove line if not using],
      
      ];
      
    const itemFlyOutCallbacks = [
    
      [enter function name here replacing square brackets or remove line if not using],
      
      ];

Make it look like the following.

    const itemCallbacks = [
    
      ];
      
    const itemFlyOutCallbacks = [
    
      cbemca,
      
      ];

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 3 weeks later...
5 hours ago, mackenzieu said:

I'm still having trouble having the photo show up on the first day of the multi-day event.

Two things that can make the image not to show.

No thumbnail image.

When the calendar gets small, SS does not add the image.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.