Postcode

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1221064
    Marianne Steiner
    Participant

    Hello, 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.

    #1221508
    Andras
    Keymaster

    Grü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,
    Andras

     

    #1221509
    Andras
    Keymaster

    Checked 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

    #1222427
    Marianne Steiner
    Participant

    Dear Andras, it worked, thank you. Can I do something, that my changes survive a plugin-update?

    #1222810
    Andras
    Keymaster

    Hi 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,
    Andras

    #1235452
    Support Droid
    Keymaster

    Hey 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Postcode’ is closed to new replies.