Home › Forums › Calendar Products › Events Calendar PRO › zip code before city name
- This topic has 11 replies, 3 voices, and was last updated 8 years, 1 month ago by
Cliff.
-
AuthorPosts
-
February 24, 2018 at 1:23 pm #1463037
Christoph Morre
ParticipantWhen you look on the site “http://austrianoil.com/veranstaltungen/” you will see, that the zip code is behind the city name. In Austria correctly it must be written “zip code before city name”
wrong -> Fernitz-Mellach, 8072
correct -> 8072 Fernitz-MellachThe language of settings is partly in English and partly in German. On the Website “https://stieglerhaus.at”, where I also use Event Calendar Pro the display of “city code before city name” is correct.
Thank you for your answer in advance
ChrisFebruary 26, 2018 at 9:42 pm #1464511Cliff
MemberHi, Christoph.
This is the way our tribe_get_venue_details() puts the various strings together. You can override this function’s template site-wide by following our Themer’s Guide for this file: /wp-content/plugins/the-events-calendar/src/views/modules/address.php
See that the postal code is below the region and above the country. You could move it to be above the region.
Please let me know how this goes for you.
February 26, 2018 at 9:52 pm #1464515Christoph Morre
ParticipantHello,
I’m not satisfied with this answer. Please look on the site “https://stieglerhaus.at/veranstaltungen/list/” and their you will see that it is shown correct. And I did not change anything in php-file.
Thank you
ChristophFebruary 27, 2018 at 7:42 pm #1465499Cliff
MemberChristoph, I’m not sure what was happening but I noticed https://stieglerhaus.at/veranstaltungen/ was displaying List View but it was only displaying 3 events.
https://stieglerhaus.at/veranstaltungen/list/ was displaying List View but was displaying 8 events (but I’m guessing you don’t have 10+ upcoming events so this is normal/expected).
So I’m really not sure why the 2 views would display both different address formats and a different number of events.
Now I see https://stieglerhaus.at/veranstaltungen/ is Month View instead.
Please let me know if you have any ideas about the differences in the two List Views if you’re still interested in using List View at https://stieglerhaus.at/veranstaltungen/ instead of Month View.
February 27, 2018 at 11:09 pm #1465585Christoph Morre
ParticipantHello Cliff,
the problem is not the number of events. It is defined about shortcode or widget.
The problem I do not understand ist, that their is a problem with the language file. In English the zip code is written behind the city, in german before the city.
When you look on the starting page you of “austrianoil.com” you will see that the link is in English, it should be in german. The same is in the admin panel, their are is partly written in german and partly in english.
The settings are the same on both sides (stieglerhaus.at and austrianoil.com).
Thank you very much for your further help
ChristophFebruary 27, 2018 at 11:20 pm #1465592Christoph Morre
ParticipantHi Cliff,
it’s me again. I found the problem with the link. The language setting in WordPress was on German (Sie) and now I changed to “German” and it works.
Now their is only the problem with zip behind city.
Thx Chris
February 28, 2018 at 7:43 pm #1466665Cliff
MemberThanks for the additional information.
Please follow my previous instructions: https://theeventscalendar.com/support/forums/topic/zip-code-before-city-name/#post-1464511
Once you do, please let me know how it goes for you.
February 28, 2018 at 9:57 pm #1466764Christoph Morre
ParticipantHi Cliff,
thank you very much, it works. But what happens when I have to update the plugin?
Looking forward to hear from you.
ChristophFebruary 28, 2018 at 10:12 pm #1466767Cliff
MemberGlad to hear!
It’s rare for this file to change.
I’d only guess it might change on major versions, such as going from 1.0.0 to 2.0.0 or possibly 1.0.0 to 1.1.0, but not minor versions like 1.0.0 to 1.0.1
Really, though, we’d likely mention any template changes in our Release Notes / Changelogs for each version update because we know people would want to update their template override as such.
February 28, 2018 at 10:13 pm #1466768Christoph Morre
ParticipantThank you very much, GREAT SUPPORT – I like it!
Have a nice day
ChristophFebruary 28, 2018 at 10:17 pm #1466772Cliff
MemberYou betcha! 🙂
To be clear, you should be doing the Template Overrides in your active theme (preferably a child theme), not modifying our plugin’s core file. This is so that your customization is not lost when our plugin is updated.
Have a great rest of your week.
-
AuthorPosts
- The topic ‘zip code before city name’ is closed to new replies.
