Vincent

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Change order address details Events Calendar List #1017788
    Vincent
    Participant

    Hi Bark,

    I forgot to say that you have to make a child theme folder otherwise your alterations would be erased with the first update of TEC

    regs,

    VC

    in reply to: Change order address details Events Calendar List #1017722
    Vincent
    Participant

    Hi, We had the same problem till today I think I solved this one 🙂 You can see the results on http://www.kantoor.nl . Im no programmer so sorry if things sounds a bit weird. this is what I did:

    go to \wp-content\plugins\the-events-calendar\src\views\modules and make a copie of the file address.php . Copie the file to /wp-content/themes/YOUR-THEME/tribe-events/modules.

    in the file change the following the part between

    // This location’s street address.
    and
    // This location’s abbreviated region. Full region name in the element title.

    into

    if ( tribe_get_address( $venue_id ) ) : ?>
    <span class=”street-address”><?php echo tribe_get_address( $venue_id ); ?></span>
    <?php if ( ! tribe_is_venue() ) : ?>
    <br>
    <?php endif; ?>
    <span class=”delimiter”>,</span>
    <?php endif; ?>

    <?php
    // This location’s postal code.
    if ( tribe_get_zip( $venue_id ) ) : ?>
    <span class=”postal-code”><?php echo tribe_get_zip( $venue_id ); ?></span>
    <?php endif; ?>

    <?php
    // This locations’s city.
    if ( tribe_get_city( $venue_id ) ) :
    if ( tribe_get_address( $venue_id ) ) : ?>

    <?php endif; ?>
    <span class=”locality”><?php echo tribe_get_city( $venue_id ); ?></span><span

    class=”delimiter”>,</span>
    <?php endif; ?>

    <?php

    ————————————-
    // now it should work fine

    • This reply was modified 10 years, 6 months ago by Vincent.
Viewing 2 posts - 1 through 2 (of 2 total)