Home › Forums › Calendar Products › Community Events › Remove Venue for Webinars (no venue)
- This topic has 4 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
January 12, 2016 at 6:19 am #1054579
Hugh
ParticipantHi, we are looking to remove the venue for a specific category of events – webinars.
Can this be done using a hook / function.
January 13, 2016 at 12:27 pm #1055525Geoff B.
MemberGood 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.
January 16, 2016 at 11:20 am #1057202Hugh
ParticipantHi 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.
January 18, 2016 at 9:12 am #1057935Geoff B.
MemberGood 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.phpBy 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.
February 18, 2016 at 8:34 am #1076871Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Remove Venue for Webinars (no venue)’ is closed to new replies.
