Jump to content

How can I stop calendar from displaying an event box on hover?

Recommended Posts

Site URL: https://bamboo-lime-face.squarespace.com/

Hi all! Would love some help. I have a rental website and I am showing what dates are available / unavailable with colour coordinating (grey - available; dark green - unavailable). I therefore don't want the fly-out box to appear on hover, as it won't contain any information.

is there any nifty code to hide the white flyout / pop up box?

 

In the image below, my mouse is hovering over the number 14

 

thanks!

 

image.thumb.png.209aa5760f5b359bc77afa849853c94d.png

 

Link to comment
11 minutes ago, hlzcp said:

I don't want the fly-out box to appear on hover. Is there any nifty code to hide the white flyout / pop up box?

Yes 😀

To prevent this on all calendars on the site, add the following to Design > Custom CSS:

.yui3-calendar-grid {
  pointer-events: none;
}

Notes:
This affects the Calendar Block on any template or version. It works by preventing mouse movements ("pointer events") from reaching the "grid" area of the calendar. The top of the calendar is still clickable, allowing users to navigate between months.

   If a post helps you, please click a "Like" option below  ↘️

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.