Home › Forums › Calendar Products › Events Calendar PRO › Adjust address format
- This topic has 5 replies, 2 voices, and was last updated 6 years, 3 months ago by Arthur Zetes.
-
AuthorPosts
-
January 9, 2018 at 6:17 am #1421228Arthur ZetesParticipant
Hey guys,
I live in Japan, and all my events are in Japan. The japanese address format is opposite of America. This means that, when I put in an address in an event, it shows up in the american format, which is really confusing and doesnt render the google map correctly.
Is there a way to adjust the format of addresses for events so that they match the standards of other countries?
thanks
January 9, 2018 at 6:34 pm #1422023PatriciaMemberHey Arthur,
Thank you for reaching out to us!
It’s certainly possible to customize the address format! The first thing to do here is review our Themer’s Guide which covers the basics for safely overriding and customizing our templates.
You can recreate an entirely new address module by doing a template override, and placing a address.php file in a tribe-events/modules/ directory within your theme directory, which will override the default file on plugins/the-events-calendar/src/views/modules/address.php.
I hope this helps! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
January 12, 2018 at 9:27 am #1424877Arthur ZetesParticipantHey patricia, thanks for your help.
I adjusted the code and added it to “/themes/(my theme’s name)/tribe-events”
so the address now is “themes/(my theme’s name)/tribe-events/address.php”
but it doesn’t seem to make any changes. what do you think the issue could be?
This is the code i adjusted below
<span class="tribe-postal-code"></span> <abbr class="tribe-region tribe-events-abbr" title=""></abbr> <br> <span class="tribe-locality"></span>
<br> <span class="tribe-country-name"></span>
January 15, 2018 at 4:52 am #1426408PatriciaMemberHi Arthur,
In themes/[your-theme]/tribe-events/, please create a new directory called modules and move your address.php file to it, everything should work as expected after this change!
Basically, the correct path is:
themes/[your-theme]/tribe-events/modules/address.php
I hope this helps! If you have any other questions please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
February 6, 2018 at 8:36 am #1445206Support DroidKeymasterHey 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 ‘Adjust address format’ is closed to new replies.