Home › Forums › Welcome! › Pre-Sales Questions › Remove Venue from showing up on published events
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by
Support Droid.
-
AuthorPosts
-
August 2, 2018 at 5:49 pm #1589200
nena3001
ParticipantHello,
Can I get some help? I’d like to prevent the venue from showing up on the published events as well as the google maps link (I’ve already disabled the maps in the settings, but he link still show)
Please be specific with your instructions, I can generally feel my way around but I’m not a techie by any means.
Thanks!
August 4, 2018 at 10:49 pm #1590489Jennifer
KeymasterHello,
Thanks for reaching out!
You can remove the venue info from the single events page by doing a template override of the meta.php file found at wp-content/plugins/the-events-calendar/src/views/modules. You’ll need to copy this file into your child theme where you can edit it – our themer’s guide has some detailed instructions on doing this. You’ll want to remove the following from your copy:
// Include venue meta if appropriate.
if ( tribe_get_venue_id() ) {
// If we have no map to embed and no need to keep the venue separate...
if ( ! $set_venue_apart && ! tribe_embed_google_map() ) {
tribe_get_template_part( 'modules/meta/venue' );
} elseif ( ! $set_venue_apart && ! tribe_has_organizer() && tribe_embed_google_map() ) {
// If we have no organizer, no need to separate the venue but we have a map to embed...
tribe_get_template_part( 'modules/meta/venue' );
echo '<div class="tribe-events-meta-group tribe-events-meta-group-gmap">';
tribe_get_template_part( 'modules/meta/map' );
echo '</div>';
} else {
// If the venue meta has not already been displayed then it will be printed separately by default
$set_venue_apart = true;
}
}We are limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know – I’ll be happy to try to point you in the right direction!
Thanks,
Jennifer
August 14, 2018 at 9:48 am #1597235nena3001
ParticipantHi Jennifer, thanks for your response.
I see you said “single events page”. I’d like to remove it from all events.
Would there be a tweak to the script?Thanks!
August 15, 2018 at 5:10 pm #1598559Jennifer
KeymasterHello,
You would need to do a template override for each of the views that you would like to remove the venue information from. If you need help finding where the address is coming from on a particular page, please let me know, and I’ll be happy to point you to it!
September 6, 2018 at 9:35 am #1615384Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Remove Venue from showing up on published events’ is closed to new replies.
