Jump to content

Remove End Time on Calendar Entries

Recommended Posts

16 hours ago, ElasticArts said:

Hello,

We'd love to remove the "end time" from our calendar and all event listings on our site. Is there a specific CSS code that will do that? Thank you! 

The site is www.elasticarts.org

-Ben

Do you mean removing it for example?

image.thumb.png.5f82256dd219fdff2da42d12b223e1af.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

You can remove the end time from Events pages with the following CSS (add to Design > Custom CSS😞

span.event-datetime-divider, time.event-time-localized-end {
  display: none;
}

The Calendar Block does not distinguish between the start and end times, so you cannot use CSS to hide just the end times. However, you can hide all the times on the calendar with the following CSS:

.flyoutitem .flyoutitem-datetime, .yui3-squarespacecalendar .item-time {
  display: none;
}

You'll need some JavaScript (and at least a Business Plan) to remove end times only. There's an old thread about something similar that may get you started.

Did this help? Please give feedback by clicking an icon below  ⬇️

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

Link to comment
  • 2 weeks later...

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.