Remove Venue for Webinars (no venue)

Home Forums Calendar Products Community Events Remove Venue for Webinars (no venue)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1054579
    Hugh
    Participant

    Hi, we are looking to remove the venue for a specific category of events – webinars.

    Can this be done using a hook / function.

    #1055525
    Geoff B.
    Member

    Good afternoon Hugh,

    That is a great question.

    If I understand correctly, you are trying to stop specific venues from displaying on the events page of a specific category.

    In that case, I would use tribe_get_venue_id as a hook.

    If on the other hand, you are talking about Community Events and you don’t want a venue to show if a specific category is selected, then your only option will be to hide it with JavaScript after the page is loaded.

    Let me know if that helps.

    Have an awesome day!

    Geoff B.

    #1057202
    Hugh
    Participant

    Hi thanks for the feedback but this doesn’t move me any more forward. I have only got a basic understanding of hooks and filters. Looking at it I think are you suggesting to remove the tribe_get_venue_id ?

    Does this hook display all the venue data – it look like it is to just get venue id not the meta data.

    Sorry but a bit lost by your suggestion here.

    #1057935
    Geoff B.
    Member

    Good morning Hugh,

    I am sorry to hear that my suggestions is not really helpful to you.

    As you might know, our ability to support customization is limited. But we try to get our wonderful clients started in the right direction.

    With that in mind, could you please tell me if you are using our Community Events premium plugin ?
    For now I am going to assume you are not.

    To answer you question the tribe_get_venue_id function is pretty much used to decide what to display regarding venues.
    You can see it in action in many places in the code /plugins/the-events-calendar/src/functions/template-tags/venue.php ,  /plugins/the-events-calendar/src/Tribe/Template/Month.php and /plugins/the-events-calendar/src/functions/template-tags/general.php

    By using a condition (in your case a specific category) AND this function hook, you can simply remove the venue info altogether. There are many ways to do this (including returning a blank venue ID for a specific category).

    You can see an example of conditional code at line 11 of venue.php using this function hook.

    I hope this helps clarify things for you.

    Let me know if it does please.

    Have a great day!

    Geoff B.

     

    #1076871
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove Venue for Webinars (no venue)’ is closed to new replies.