Home › Forums › Calendar Products › Events Calendar PRO › Remove venue
- This topic has 7 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
November 25, 2015 at 7:43 am #1030834
kortris
Participanthellow,
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
November 25, 2015 at 7:49 am #1030838Barry
MemberHi 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?
November 25, 2015 at 8:24 am #1030854kortris
ParticipantThis reply is private.
November 25, 2015 at 9:15 am #1030872Barry
MemberHi 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 π
November 25, 2015 at 1:06 pm #1030937kortris
ParticipantThis reply is private.
November 25, 2015 at 1:17 pm #1030940kortris
ParticipantThis reply is private.
November 25, 2015 at 1:48 pm #1030949Barry
MemberHi 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?
February 18, 2016 at 8:31 am #1075797Support 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’ is closed to new replies.
