Home › Forums › Calendar Products › Events Calendar PRO › Postcode
- This topic has 6 replies, 4 voices, and was last updated 9 years, 2 months ago by
Marianne Steiner.
-
AuthorPosts
-
January 19, 2017 at 10:31 am #1221064
Marianne Steiner
ParticipantHello, in Switzerland and other european countries the postcode is placed in front to the venue. It would be great, if it would be possible to have the option, to choose the position of the postcode.
January 20, 2017 at 7:58 am #1221508Andras
KeymasterGrüezi Maranne
Thanks for reaching out and submitting that idea!
While this cannot be done at the moment with a setting, you can create a template override to fix this.
Here are two articles that should get you started on how you can do this:
https://theeventscalendar.com/knowledgebase/themers-guide/
https://theeventscalendar.com/knowledgebase/template-overview/Also these functions should be helpful, you can find more info on them in our technical docs (a search for “venue” will help narrow it down):
tribe_get_city()
tribe_get_stateprovince()
tribe_get_address()
tribe_get_venue()and some more.
This should get you started, let me know if you need further help.
Cheers,
AndrasJanuary 20, 2017 at 8:01 am #1221509Andras
KeymasterChecked a bit further, maybe it will be enough just to do a simple override for this file:
wp-content\plugins\the-events-calendar\src\views\modules\address.php
And just rearrange the different sections of how the address is put together.
Let me know if you get stuck.
Andras
January 23, 2017 at 9:39 am #1222427Marianne Steiner
ParticipantDear Andras, it worked, thank you. Can I do something, that my changes survive a plugin-update?
January 24, 2017 at 12:43 am #1222810Andras
KeymasterHi Marianne,
Yes, if you put that file in the following folder, then it will survive a plugin update:
wp-content\themes/{your-theme}\tribe-events\modules\address.php
It is usually recommended not to change the core files for exactly the lost-at-update reason. That is why we have created the possibility to make overrides like that. If a file can have an override, then you will see the details at the beginning of the file. And for some other details our Themer’s Guide and Template Overview (linked above) are a good starting point.
Let me know if you need any more help with this. 🙂
Cheers,
AndrasFebruary 15, 2017 at 8:35 am #1235452Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Postcode’ is closed to new replies.
