Jump to content

EVENTS PAGE --- NEED to remove "times" from multi-day events

Recommended Posts

Posted

Site URL: https://www.genesisart.org/our-events

Client has "gallery" events which last several WEEKS. So "time" (unless it can be customized for every day) really doesn't work — and is confusing to viewers.

We're using the BRINE template (I think it's 7.1?) — and I DO already have a working code for "no hyphens." Just need to ADD CODE that removes the TIME from multi-day events...... HELP?? 🙂 

 

Also SqSp "Live Chat" seems to have gone away...... YIKES.  

Here's the code I've used (below).
And a screen shot (with times STILL showing). 


p, h1, h2, h3 {
  -webkit-hyphens: manual !important;
  -moz-hyphens: manual !important;
  -ms-hyphens: manual !important;
  hyphens: manual !important;
}h1 a, h2 a, h3 a, p a{border-bottom-style: none !important;}
h1 a, h2 a, h3 a{color: #d15e31}
.eventitem--multiday .eventitem-meta-time, .eventitem--multiday .eventitem-meta-date .event-date:after {
  display: none;
}

pic 2022-02-04 at 1.25.14 PM.jpg

Posted
16 hours ago, bonjouryall said:

Client has "gallery" events which last several WEEKS. So "time" really doesn't work. We're using the BRINE template (I think it's 7.1?) — Just need to ADD CODE that removes the TIME from multi-day events

You're using a Brine-family template, on Squarespace 7.0.

To hide the times, you'll need to hide the time as well as the comma that appears between the date and time. Here's some CSS that you can add to Design > Custom CSS to hide both. The first section removes the comma; the second removes the time on multi-day events.

.event-list-time .eventlist-event--multiday .eventlist-meta-date .event-date:after {
    content: "";
}
.event-list-time .eventlist-event--multiday .eventlist-meta-time {
    display: none;
}

After adding the CSS:

745087517_Screenshot2022-02-05at10_45_48.thumb.png.707170c2678f4b2233c61393173fb01d.png

 

We like to know if our posts help. Please consider clicking a 'Like' or 'Thanks' icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 6 months later...
Posted

Hello, I have a site with multiple multi-day event pages. I want to hide the time on one of these pages only. The above code works great for me site wide but how do I successfully hide event times for one page only? I have tried inserting the code to page header code injection for that particular page to no avail. Please help and thank you.

Posted
2 minutes ago, earthwindflowermoon said:

I want to hide the time on one of these pages only.

Please post the URL for a page on your site where we can see your issue.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

We can then take a look at your issue.

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.

Posted (edited)

To restrict the effect to an event page add #collection-630ab6721cc4e22a6b4ac6fe before lines beginning with .event-list-time. Like #630ab6721cc4e22a6b4ac6fe.event-list-time.

Let us know how it goes.

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.

Posted

Thanks Creedon. I added this to custom CSS...

#collection-630ab6721cc4e22a6b4ac6fe
.event-list-time .eventlist-event--multiday .eventlist-meta-date .event-date:after {
    content: "";
}
#collection-630ab6721cc4e22a6b4ac6fe
.event-list-time .eventlist-event--multiday .eventlist-meta-time {
    display: none;
}

It made no change.

Posted
2 hours ago, earthwindflowermoon said:

but now how to hide on the actual event itself?

Add the following to your current CSS wherever it may be.

.collection-630ab6721cc4e22a6b4ac6fe .eventitem--multiday .eventitem-meta-date .event-date::after {

  content : '';
  
  }

.collection-630ab6721cc4e22a6b4ac6fe .eventitem--multiday .eventitem-meta-time {

  display : none;
  
  }

This is for v7.1 and specific to the posters need.

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.

Posted
41 minutes ago, MSalas said:

just list a start time and not an end time?

Add the following to Events Settings > Advanced > Page Header Code Injection for the events page. Please see per-page code injection.

<style>

  .eventlist-event .event-datetime-divider,
  .eventlist-event .event-time-12hr-end,
  .eventlist-event .event-time-24hr-end,
  .eventitem .event-datetime-divider,
  .eventitem .event-time-12hr-end,
  .eventitem .event-time-24hr-end
  
    {
    
      display : none;
      
      }
      
  </style>

This is for v7.0 using the Five template.

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.

Posted
On 8/30/2022 at 11:47 AM, creedon said:

Add the following to Events Settings > Advanced > Page Header Code Injection for the events page. Please see per-page code injection.

<style>

  .eventlist-event .event-datetime-divider,
  .eventlist-event .event-time-12hr-end,
  .eventlist-event .event-time-24hr-end,
  .eventitem .event-datetime-divider,
  .eventitem .event-time-12hr-end,
  .eventitem .event-time-24hr-end
  
    {
    
      display : none;
      
      }
      
  </style>

This is for v7.0 using the Five template.

Let us know how it goes.

Thank you, that worked great!

  • 1 year later...
Posted
On 2/5/2022 at 5:46 AM, paul2009 said:

You're using a Brine-family template, on Squarespace 7.0.

To hide the times, you'll need to hide the time as well as the comma that appears between the date and time. Here's some CSS that you can add to Design > Custom CSS to hide both. The first section removes the comma; the second removes the time on multi-day events.

.event-list-time .eventlist-event--multiday .eventlist-meta-date .event-date:after {
    content: "";
}
.event-list-time .eventlist-event--multiday .eventlist-meta-time {
    display: none;
}

After adding the CSS:

745087517_Screenshot2022-02-05at10_45_48.thumb.png.707170c2678f4b2233c61393173fb01d.png

 

We like to know if our posts help. Please consider clicking a 'Like' or 'Thanks' icon below  ⬇️

Hello @paul2009. I'm trying to hide the time from events on a 7.1 site. I used this code to hide the time, but it leaves the commas behind:

.event-time-localized {
  display: none !important;
}

So I found your post and tried that code, but it didn't work. Is there different code for 7.1?

Also, is there a way to apply this to specific events. My client has single-day events with specific times but the multiday events don't. Thank you!

Posted
7 minutes ago, jackweinstein said:

I'm trying to hide the time from events on a 7.1 site.

What is the URL of the page?

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 2 weeks later...
Posted
3 hours ago, watts-creative said:

I was able to hide the times and commas for multi-day events on the event detail page but not on the event list page.

Please see the following.

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.

Posted

@creedon Thanks for your reply. I read through the whole thread you posted, and while the following code got rid of the time for the Event list page, it left the commas. See screenshot.

span.eventlist-meta-time {
    display: none !important;
}

image.png.f4901ab19fa0a1e9ad4f78e608d687dc.png

Someone actually followed up with this same issue about the commas on that thread, but then the conversation got derailed by a different request. I read through the whole thing twice and couldn't find the solution for removing the commas. Again, this is just for my multi-day events on the Events listing page...I've got it working on the Event detail page.

Thanks for your help!

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.