Help Excluding Event Categories from Calendar Widget

Home Forums Calendar Products Events Calendar PRO Help Excluding Event Categories from Calendar Widget

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #30390
    Jason
    Participant

    I’m looking for ways to exclude event categories from the calendar widget and I came across this thread that said it’s not currently possible with the standard TEC queries.

    Exclude categories from calendar widget?


    Has anyone had success modifying table-mini.php to achieve this?
    Will this suggestion be incorporated into 2.1? If so, is there a timeline for when 2.1 might be released?

    #30392
    Barry
    Member

    A “cheap and cheerful” way of doing this could be to edit the tribe_mini_display_day() function contained in your custom table-mini.php template.

    It might need a bit of polish, but replacing it with this version seems to do the trick. You would of course need to replace “Do Not Show” with the actual name of the category you wish to omit.

    #30394
    Barry
    Member

    Will this suggestion be incorporated into 2.1? If so, is there a timeline for when 2.1 might be released?

    2.1 is now 3.0 – we expect it to be released sometime soon but I’m afraid I still can’t give a guarantee of exactly when or even quite what features will make the final cut.

    #30434
    Jason
    Participant

    Hi Barry,

    Thanks for the code you supplied. The categories are removing correctly with it, but the arrow pointing to the dates is also disappearing. If I sort out a polished version, I’ll put it up for others to reference.

    Jason

    #30435
    Jason
    Participant

    It’s not actually a bug in the code, but the original table-mini.php has .tribe-events-arrow inside .tribe-events-tooltip and this has it outside. If you’re using the default events.css file, you’ll need to move it back inside.

    With this change, everything’s displaying correctly.
    http://pastebin.com/Ls88S0gx

    Thanks again,

    Jason

    #30436
    Barry
    Member

    Yeah my bad, but thanks for posting back with an updated version 🙂

    #30438
    Jason
    Participant

    Not a problem; you did the hard part 🙂

    #978387
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Help Excluding Event Categories from Calendar Widget’ is closed to new replies.