Remove Category from Photo / Month / List View

Home Forums Calendar Products Events Calendar PRO Remove Category from Photo / Month / List View

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1071709
    Kerry Sykes
    Participant

    I have a category which I want to remove from my events lists, but show as photo/month/list it’s own category, this is for community weekly events.

    Is this something that is being considered as an update, so you can choose to “remove” certain categories from the main list, so this does not have to be done in code!

    This is kind of having 2 calendars, one for Main Events and one for Community Events

    #1071850
    Josh
    Participant

    Hey,

    Thanks for reaching out to us!

    Could you provide a little more detail about what you’re trying to accomplish? Unfortunately I don’t believe I’m fully understanding what you’re wanting to accomplish with these particular views.

    Thanks!

    #1071908
    Kerry Sykes
    Participant

    This reply is private.

    #1073287
    Josh
    Participant

    Hey,

    Thanks for following up and providing this additional information!

    Take a look at this thread and try the associated completed snippet and see if it works for what you’re trying to accomplish https://theeventscalendar.com/support/forums/topic/hide-category-from-main-calendar-but-not-category-calendar/.

    Thanks!

    #1074850
    Kerry Sykes
    Participant

    This reply is private.

    #1074853
    Kerry Sykes
    Participant

    Thanks ever so much, can you let me have the definitive code I would need and the exact location this needs to be placed.

    I am trying to take out this category from the photo / month view please

    This is the slug – community_calendar

    I am not a web developer, so would need to pass this info onto one to add the code to.

    Many thanks

    #1078356
    Josh
    Participant

    Hey,

    Thanks for following up.

    The full snippet that you would use would be found here https://theeventscalendar.com/support/forums/topic/hide-category-from-main-calendar-but-not-category-calendar/#dl_post-1012460.

    You would add that to your theme’s functions.php file and you would just need to change the terms in the array on line 19 to match the category terms that you would like hidden from the calendar.

    If you’re passing this onto a developer to add, this should be more than enough information for them to accomplish what you’re looking for here.

    Thanks!

    #1079662
    Kerry Sykes
    Participant

    This reply is private.

    #1080709
    Josh
    Participant

    Hey Kerry,

    Are you wanting a snippet that now just removes the category from the Photo view but still has it in the other views (Month, List, etc.)?

    Also, what is the exact category slug that you’re wanting to have hidden?

    Thanks!

    #1080823
    Kerry Sykes
    Participant

    Yes that’s right, if we can remove the category ‘community_calendar’ from the photo view, I can then create the list view for each category within that.

    If you could let me have the snippet for that, we would really appreciate it.

    Many thanks

    #1081549
    Josh
    Participant

    Hey Kerry,

    You can use the following snippet (added to your theme’s functions.php file) to had that category from the Photo view:

    https://gist.github.com/BeardedGinger/2f88f06651ab018617fe

    Let me know if this helps.

    Thanks1

    #1087212
    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 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Remove Category from Photo / Month / List View’ is closed to new replies.