Home › Forums › Calendar Products › Events Calendar PRO › Getting rid of the "Country" in the address in list view
- This topic has 5 replies, 4 voices, and was last updated 10 years, 1 month ago by Barry.
-
AuthorPosts
-
February 27, 2014 at 9:40 am #110250sciotomileParticipant
every thread on this subject is from 2012 and the new version of the plugin doesn’t have full-address.php. How can I remove the country when in list view?
http://www.sciotomile.com/events/upcoming/February 27, 2014 at 9:46 am #110251sciotomileParticipantI attempted to comment out the code reguarding “country” in the file: the-events-calendar/public/template-tags/venue.php
This resulted in chaos and mayhem. It restore the original version of the file.
February 27, 2014 at 11:08 am #110271snortonParticipant@sciotomile : I know that ECP has hooks aplenty for changing the output via functions, but you may find it easier to simply override the template files. In the case of overriding the List View template file, you’ll want to take the
single-event.php
from here:\wp-content\plugins\the-events-calendar\views\list
and place a copy of it here:
\wp-content\themes\[your theme]\tribe-events\list
From there you can completely change the way the events are output in the list view. I prefer this method in times where I want to make considerable changes to default views.
February 27, 2014 at 4:07 pm #110542Julie KuehlParticipantHey sciotomile,
First off, hat tip to snorton for his suggestion. Have you tried that?
Also, I was going to suggest that you take a look at this tutorial https://theeventscalendar.com/altering-or-removing-headings-on-calendar-views/ It’s only slightly different than what you’re trying to accomplish and might have enough there to help you get it figured out.
Does one of those work for you?
– Julie
P.S. I also found this tutorial which may be just what you need: https://theeventscalendar.com/remove-country-from-address-field-on-single-event-pages/
March 4, 2014 at 8:28 am #112282sciotomileParticipantI fiqured it out… I added the following code to the tribe-events.css file… http://pastebin.com/wuw97Qtq
April 21, 2014 at 7:38 am #138282BarryMemberClosing this thread as it’s been quite a while – of course if we can help with anything else please do create a new thread. Thanks!
-
AuthorPosts
- The topic ‘Getting rid of the "Country" in the address in list view’ is closed to new replies.