Remove Venue from showing up on published events

Home Forums Welcome! Pre-Sales Questions Remove Venue from showing up on published events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1589200
    nena3001
    Participant

    Hello,

    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!

    #1590489
    Jennifer
    Keymaster

    Hello,

    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

    #1597235
    nena3001
    Participant

    Hi 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!

    #1598559
    Jennifer
    Keymaster

    Hello,

    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!

    #1615384
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove Venue from showing up on published events’ is closed to new replies.