Home › Forums › Calendar Products › Events Calendar PRO › Remove Cost Label and Organizer
- This topic has 11 replies, 2 voices, and was last updated 10 years, 1 month ago by
Geoff B..
-
AuthorPosts
-
March 2, 2016 at 6:44 am #1084288
Laura
ParticipantHello! I’m trying to remove two elements from the calendar and think I may be using the incorrect code.
1. Remove Event Cost label (not the cost in the Event Details, but the one that appears in the main upcoming event list view) I tried tweaking the code used to remove the dates from that view, but it didn’t work.
2. Remove Organizers from Filter Bar. I’ve successfully removed categories from it with the following code, but can’t seem to get it to work when changing values for the Organizer.
.tribe-events-filter-checkboxes li.tribe-events-category-my-category{
display: none;
}As usual, any help/direction is appreciated. Thank you very much!
March 3, 2016 at 2:49 am #1084748Geoff B.
MemberGood morning Laura and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.1. Remove Event Cost label (not the cost in the Event Details, but the one that appears in the main upcoming event list view) I tried tweaking the code used to remove the dates from that view, but it didn’t work.
Could you try adding the following rule to your WordPress theme’s CSS ?
.tribe-events-list .tribe-events-event-cost {
display:none;
}2. Remove Organizers from Filter Bar. I’ve successfully removed categories from it with the following code, but can’t seem to get it to work when changing values for the Organizer.
.tribe-events-filter-checkboxes li.tribe-events-category-my-category{
display: none;
}Can you please go to Events -> Settings -> Filters and uncheck the Organizers box and the hit Save ?
That should probably do the trick 🙂
Let me know how that goes.
Best regards,
Geoff B.March 3, 2016 at 5:02 am #1084761Laura
ParticipantHello, Geoff – thanks so much! The code to remove the cost label worked perfectly; I was missing the ‘s’ in tribe_events. Duh.
For the second request, sorry for not being more clear. I don’t want to remove all the Organizers from the Filter Bar, just a select group of them. For example, if I have Organizers named A, B, C, D, and, E, I would like to be able to remove just C and D from the filter bar. I tried it with the code in my first email and changing the name values, but had no luck. Thank you for your help!
March 3, 2016 at 1:35 pm #1085047Geoff B.
MemberHey Laura,
I am really glad you solved the first issue. Good job on that!
I would also love to help you out for the second request.
But to do a good job at it, it would be much faster with additional details (ideally an URL with the specific organizers you are trying to hide) 🙂
Have a great day!
Geoff B.
March 3, 2016 at 1:40 pm #1085048Laura
ParticipantThis reply is private.
March 4, 2016 at 3:04 pm #1085367Geoff B.
MemberGood evening Laura,
Thank you for sharing the link.
I understand better what you are trying to accomplish now.You did have the right idea about how to hide some of the Sponsors checkboxes using CSS.
The issue you are facing is that if you look closely at the html of the page, you will notice that each element does not have a class (at least not built-in). This is why li.tribe-events-category-my-category will not work for now.
So, it looks like you have a couple of options at your disposal:
- Add a CSS class to each
- checkbox element by doing some template customization (you might want to read our Themer’s guide to get a general sense of how that works).
- Use relative CSS rules (e.g.: .tribe_events_filter_item+.tribe_events_filter_item .tribe-events-filter-checkboxes li+li)
Let me know if that helps.
Have a great day!
Geoff B.
March 7, 2016 at 6:54 am #1085811Laura
ParticipantHi, Geoff — thanks for your response! I understand the potential fixes you have proposed and will give them a try. We may change some of the way the events are presented so I’m going to hold off on trying your fix until then because this may become moot. Is it OK if I leave the ticket open until then or should I close it and re-open if I need assistance with this issue? As usual, thank you very much — I really appreciate your help!
March 7, 2016 at 4:49 pm #1086083Geoff B.
MemberGood evening Laura,
I totally understand and I do not mind leaving this open until you can work your magic 🙂
If it can help, as I pointed out before, I totally believe that some customization can add CSS classes to each of these elements.In any case, you are very welcome, it is always a pleasure to help you out.
Let me know what you decide on.
Have a great week!
Geoff B.
March 9, 2016 at 6:31 am #1086630Laura
ParticipantHello, Geoff! Thanks for leaving the thread open while I figured some things out. For now, I will not need to implement the removing the Organizer the filter bar fix because I’ve found a workaround. That workaround leads me to two quick questions:
1) I had a code snippet to remove “Upcoming Events” from the main events page. I’ve switched now to the vertical filter bar and now “Upcoming Events” is back and I can’t seem to remove it. I was using the code:
.tribe-events-notices {
display: none;
}2) Instead of leading users to a category’s individual page, I’m leading them to a list of upcoming events for that category because we don’t want them to see the filter bar. Is there a way with the shortcode to only show the event’s title (no date, no time, no calendar icon) and an excerpt?
Thanks, again, for all your help!
March 9, 2016 at 10:49 pm #1086995Geoff B.
MemberGood evening Laura,
I’ll be glad to answer your 2 quick questions.
1) I had a code snippet to remove “Upcoming Events” from the main events page. I’ve switched now to the vertical filter bar and now “Upcoming Events” is back and I can’t seem to remove it. I was using the code:
.tribe-events-notices {
display: none;
}I recommend replacing .tribe-events-notices by .tribe-events-filter-view .tribe-events-list h2.tribe-events-page-title
2) Instead of leading users to a category’s individual page, I’m leading them to a list of upcoming events for that category because we don’t want them to see the filter bar. Is there a way with the shortcode to only show the event’s title (no date, no time, no calendar icon) and an excerpt?
There is unfortunately no built-in way to do this. If I had to do it myself, I would use our Themer’s guide to modify the layout of the upcoming events (list view) to your liking.
Let me know if that helps.
Have a great day!
Geoff B.
March 15, 2016 at 7:21 am #1089039Laura
ParticipantThat worked — thank you! I really appreciate your help.
March 15, 2016 at 9:19 am #1089119Geoff B.
MemberGood afternoon Laura,
I’m really glad I could help.
You are welcome back on our support forums any time 🙂
For now, I am going to close this thread.
Have a great week!
Geoff B.
-
AuthorPosts
- The topic ‘Remove Cost Label and Organizer’ is closed to new replies.
