Remove venue

Home Forums Calendar Products Events Calendar PRO Remove venue

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1030834
    kortris
    Participant

    hellow,

    Is it possible to disable the venue field? I want to show only the city name above the events and in the list widget.

    Thank you in advance

    #1030838
    Barry
    Member

    Hi Koro,

    So do you mean you wish to remove the venue information from individual event pages?

    If so, I’d recommend reading through our Themer’s Guide in the first instance as this covers many of the basic steps needed to safely customize and override our default templates πŸ™‚

    In this specific case, the change could be as simple as creating a new completely blank file at:

    themes/YOUR_THEME/tribe-events/modules/meta/venue.php

    This would prevent any of the default venue information from being exposed. To add the city name, you could find the appropriate position and within a custom single-event.php template you could add a line of code like this:

    <?php echo tribe_get_city(); ?>

    Does that help?

    #1030854
    kortris
    Participant

    This reply is private.

    #1030872
    Barry
    Member

    Hi Koro,

    You’d need to create the tribe-events directory within your theme directory. Please take a look at our Themer’s Guide for a more detailed explanation πŸ™‚

    #1030937
    kortris
    Participant

    This reply is private.

    #1030940
    kortris
    Participant

    This reply is private.

    #1030949
    Barry
    Member

    Hi Koro,

    Please avoid using private replies unless you need to share confidential information or are including a URL you do not wish to share publicly.

    thank you for your answer i have sucessfully β€œhide” the venue. could you please let me know where i have to palce the single-event.php?

    It really depends on where you want it to appear. Right below this line might be a good spot:

    <!-- #tribe-events-header -->

    Why not give it a go and experiment a little? πŸ™‚

    as i have noticed the venue is still be viewable above the event title in the events page-list. s it possible to completely hide the venue from everywhere and show only the city name?

    Try overriding list/single-event.php and look for this block of code, which you can simply remove:

    <?php if ( $venue_details ) : ?>
    	<!-- Venue Display Info -->
    	<div class="tribe-events-venue-details">
    		<?php echo implode( ', ', $venue_details ); ?>
    	</div> <!-- .tribe-events-venue-details -->
    <?php endif; ?>

    Does that help?

    #1075797
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Remove venue’ is closed to new replies.