Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] Remove Select A Country value

Viewing 6 replies - 1 through 6 (of 6 total)
  • Was gonna ask the same question. Maybe a conditional check to hide it if the value is equal to “Select a country:”?

    I would also like the option to not display the Country if left blank, or as “Select A Country”.


    Ok, so I found the line of code that adds the Country to the address.

    For my particular project I do not need the Country at all, so I removed it completely.

    To do so, I copied the ‘full-address.php’ file that located in the ‘views’ directory.

    Then I created an ‘events’ folder inside my theme folder.

    After you have done so, open ‘full-address.php’ in your editor of choice and remove lines 39-41. They should look like this:

    <?php if( tribe_get_country( $postId ) ) { ?>
    		<?php $address_out []= '<span itemprop="addressCountry">' . tribe_get_country( $postId ) . '</span>'; ?>
    	<?php } ?>

    Refresh your page, and you should notice that the country is no longer showing.

    Hope that helps!

    Fortunately I am aware of how I can create template override files (this is one of the many reasons The Events Calendar is so awesome), but really the purpose of this post was to notify the developers of the problem. This is a problem if some events need to define a Country and some don’t.

    The biggest problem I find with this is even if you do override the template so “select a country” doesn’t show, it still screws up the search criteria for the Google Maps link, even though the map in the post is displayed correctly.

    Plugin Author Rob La Gatta


    Modern Tribe Support

    Hey guys. Thanks for the heads up on this, and for your posts helping each other out too. This is unfortunately a known issue that we’ve got in the works to be fixed. It won’t be included in the 2.0.8 release that’s coming out today or tomorrow, but it will be in 2.0.9 when that comes at the start of August.

    Thanks for your patience in bearing with us for an official solution on it so far. Let me know if you’ve got any other questions too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: The Events Calendar] Remove Select A Country value’ is closed to new replies.