Jump to content

Remove end time for just ONE event

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Site URL: https://www.clevelandcello.com/events-1

My apologies if this has been answered somewhere: I could find variants on this topic, but not this PRECISE topic.

I list several events on my website.  For just ONE of them I need to remove the end time.  (My current template refuses to let me specify only a start time: the best I can do is something nonsensical like "2:00pm-2:00pm.")  I found from another request thread the code to remove ALL end times from ALL events (which the solution I have temporarily applied).  But I need to remove it from just ONE event, to get something like "2:00pm."  (Otherwise I will have to add text in event descriptions for all the events that DO have an end time, stating their end times.  I can do this, but would love to be able to just delete end times from the very few events I ever have which do not have end times, rather than manually entering end times for the very many events I have that do have end times.)  I saw a reply that advised how to do this using some sort of tag thing (can you tell I am an utter noob?!) but I did not understand the answer.  Any advice from someone who can explain it to me like I am a slightly-slow 5-year-old?  I do know how to copy and paste code into the Custom  CSS place, etc., but that is about it.  

(Man, I signed up with SquareSpace because I was told it was simple and flexible.  But not flexible enough to let me NOT input an end time!  *sigh*)

 

  • Replies 6
  • Views 405
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Thank you so much for responding!  I already used a code script (is that the right phrase?) which removed ALL end times, which is an adequate solution for us.  It is this code, I think:


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

 

How would you modify it to address just individual events?

 

  • 2 weeks later...
Posted

I am sorry I did not check earlier, and see your reply!  Thank you for helping me.  As I mentioned in my October 17 message, I have installed some code which takes away ALL end times of ALL events.  If I delete this code ALL events get end times again.  So I am trying to turn off an end time for ONE event.  Here is one:

https://www.clevelandcello.com/events-1/next-event

Right now its end time is off, because the code is active.  

Thanks,  GM

  • Solution
Posted
On 10/31/2024 at 1:05 AM, GlennMercer said:

I am sorry I did not check earlier, and see your reply!  Thank you for helping me.  As I mentioned in my October 17 message, I have installed some code which takes away ALL end times of ALL events.  If I delete this code ALL events get end times again.  So I am trying to turn off an end time for ONE event.  Here is one:

https://www.clevelandcello.com/events-1/next-event

Right now its end time is off, because the code is active.  

Thanks,  GM

You can edit this event > Event Content > Add a Code Block > Paste this code

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

 

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!)

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.