Remove Cost Label and Organizer

Home Forums Calendar Products Events Calendar PRO Remove Cost Label and Organizer

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1084288
    Laura
    Participant

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

    #1084748
    Geoff B.
    Member

    Good 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.

    #1084761
    Laura
    Participant

    Hello, 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!

    #1085047
    Geoff B.
    Member

    Hey 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.

    #1085048
    Laura
    Participant

    This reply is private.

    #1085367
    Geoff B.
    Member

    Good 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:

    1. Add a CSS class to each
    2. 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).
    3. 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.

    #1085811
    Laura
    Participant

    Hi, 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!

    #1086083
    Geoff B.
    Member

    Good 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.

    #1086630
    Laura
    Participant

    Hello, 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!

    #1086995
    Geoff B.
    Member

    Good 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.

     

    #1089039
    Laura
    Participant

    That worked — thank you! I really appreciate your help.

    #1089119
    Geoff B.
    Member

    Good 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.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Remove Cost Label and Organizer’ is closed to new replies.