Getting rid of the "Country" in the address in list view

Home Forums Calendar Products Events Calendar PRO Getting rid of the "Country" in the address in list view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #110250
    sciotomile
    Participant

    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/

    #110251
    sciotomile
    Participant

    I 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.

    #110271
    snorton
    Participant

    @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.

    #110542
    Julie Kuehl
    Participant

    Hey 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/

    #112282
    sciotomile
    Participant

    I fiqured it out… I added the following code to the tribe-events.css file… http://pastebin.com/wuw97Qtq

    #138282
    Barry
    Member

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Getting rid of the "Country" in the address in list view’ is closed to new replies.