Delete a comma 3

Home Forums Calendar Products Events Calendar PRO Delete a comma 3

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1100650
    Birgit Bauer
    Participant

    Hello,
    sorry for opening the third topic, but the last one was closed already.

    This topic is following the discussion we had here:

    Delete a comma 2

    The first comma in the file:
    plugins/the-events-calendar/src/views/modules/meta/venue.php

    worked very well and the comma is no longer shown.

    but for:
    plugins/the-events-calendar/src/views/list/single-event.php

    I couldn’t find the line:
    <?php echo tribe_get_full_address(); ?>
    you asked me to change.

    Which line do I have to change in the single-event.php?

    Thank you for your help!

    #1100839
    George
    Participant

    Hey @Birgit,

    Thanks for reaching out.

    We unfortunately cannot help with customizations or line-by-line assistance with locating code in our files—please see this page to learn more about the scope of support we can provide here → https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/


    In regards to your questions, the function tribe_get_full_address() does not exist in /views/list/single-event.php. So you will have to use a different approach there.

    You will notice a variable in this file called $venue_details—you can alter the address by modifying the $venue_details[‘address’] array element specifically.

    Something similar to this might help—though you will need to tinker here.

    Look for this:

    // Setup an array of venue details for use later in the template
    $venue_details = tribe_get_venue_details();

    Then add code like the following right below it—literally the next line down:


    ob_start();

    $_venueId = tribe_get_venue_id();

    echo tribe_get_address( $_venueId );
    echo '<br>' . tribe_get_city( $_venueId );

    $new_address = ob_get_clean();

    $venue_details['address'] = $new_address;

    You will likely need more tinkering from where, which you will have to take the reins on. If you find yourself not able to put together exactly what you want here, and aren’t able to find details like this from the code itself, then your best bet is to hire a professional developer since we cannot provide further assistance with your customizations.

    We have a list of great developers here → http://m.tri.be/18k1 (and have no affiliation with any of these folks—they’re simply some well-respected names in the community that we’ve compiled to share in situations like this one).

    Best of luck with your custom coding,
    George

    #1107169
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Delete a comma 3’ is closed to new replies.