Home › Forums › Calendar Products › Events Calendar PRO › Month view, show only first day of multi day event
- This topic has 16 replies, 3 voices, and was last updated 7 years ago by Patti.
-
AuthorPosts
-
February 23, 2017 at 1:23 pm #1244829PattiParticipant
Referencing this post: https://theeventscalendar.com/support/forums/topic/display-only-first-day-or-show-end-date/
Per instructions on that post, I added the adjusted css style, except what it does is shut off ALL of the event instances for that month. Is there another way to do this?
(Plugin version is holding at 4.4.1 until the photo view overlap thing is fixed.)
February 25, 2017 at 5:56 am #1245766PattiParticipantLeaving a comment so you don’t think I abandoned the question after two days. Still looking for a solution if you have one. BTW, same issue running 2017 theme, no plugins other than security & TEC, TECP.
February 27, 2017 at 3:22 am #1246153VictorKeymasterHi Patti!
Thanks for coming back to us!
I followed the referenced thread and see they were trying to hide in all the days of an event except from the first day. Are you trying to do the same?
Could you please provide me a link to the page where you are trying to accomplish this? So I can inspect the page and see why it isn’t working.
Thanks!
Victor
February 27, 2017 at 4:18 am #1246160PattiParticipantIt’s the same URL as the site I selected from the list of sites registered to my license, when I filled out this form. I could not leave the 6 month, multi day event in place because the site catalog went live on Saturday. you can view it on my test site but that requires I get your IP address.
- This reply was modified 7 years, 2 months ago by Patti.
February 27, 2017 at 9:43 am #1246292February 27, 2017 at 6:14 pm #1246591VictorKeymasterThis reply is private.
February 27, 2017 at 6:37 pm #1246596PattiParticipantNot sure why it wouldn’t work the same as on the referenced site? Aren’t they setup the same?
March 1, 2017 at 6:30 pm #1248097VictorKeymasterHi Patti!
The css code from the referenced thread does not work as we expected. Since we didn’t have the confirmation from that user, we didn’t know until now.
I wanted to let you know that we’ve been looking for a possible solution to your issue but we were not able to find one yet. We will take a second chance at finding one and will let you know as soon as we can. Please hang in there.
Best!
Victor
March 2, 2017 at 4:48 am #1248263PattiParticipantI’m standing by. No worries.
To let you know, I have played with the css six ways from Sunday and got nowhere. The problem is, the css wildcard selector that needs to be used because of the day number being added to the post-id will not work with the :not. (Double negative, yay!) But then I’m sure you’ve already witnessed that. :-/
March 3, 2017 at 7:47 am #1248974PattiParticipantSo, this works, but displays on the first of every month (where the event post-id is 1998):
body.post-type-archive-tribe_events div[id^='tribe-events-event-1998-']:not([id$='1998-1']) { display: none; }
If there were some way of refining with a class or id that is the month name or number as a part of the “not” attribute, it would work like a charm. Ex.
:not(.march-2017 #tribe-events-event-1998-1)
March 3, 2017 at 5:51 pm #1249320VictorKeymasterHi Patti!
Thanks for coming back and giving us your feedback on this.
I wanted to let you know that we couldn’t come up with a CSS fix and we are now looking for a solution using another approach that may involve a template customisation.
Rest assured we are taking this into account and I will try to come back with a solution as soon as possible.
Best
March 7, 2017 at 8:40 pm #1250860VictorKeymasterHi Patti!
I just wanted to check in to let you know that we’ve been busy lately and haven’t had the time to come up with a solution yet.
I know you are looking forward to making this happen, so please do hang in there.
Thanks!
Victor
March 10, 2017 at 4:10 am #1252261PattiParticipantI’ve been poking at it myself when I have time, trying to come up with a workable css solution. While it would be nice to have a resolution, I understand there are more pressing things going on in the world. Thank you for your time.
March 21, 2017 at 9:40 pm #1257813VictorKeymasterHey Patti!
I’m sorry I took so long to reply. We’ve been really busy and could not go through this until now. So I really appreciate your patience here.
With the awesome help from Barry, here is a snippet of code you can put in your functions.php file:
https://gist.github.com/vicskf/5854eb1f88b8886c39743ca250a4ba99
That will only show the first day of the event and remove the rest of the days. It may not be exactly what you want to accomplish, but will point you in the right direction.
I hope that helps and let me know if any other questions.
Good luck with your project!
Victor
March 23, 2017 at 7:24 am #1258637PattiParticipantI appreciate the time you all put into this. I’ll give it a test run asap. Thank you!
-
AuthorPosts
- The topic ‘Month view, show only first day of multi day event’ is closed to new replies.