Home › Forums › Calendar Products › Events Calendar PRO › Delete a comma 3
- This topic has 2 replies, 3 voices, and was last updated 9 years, 12 months ago by
Support Droid.
-
AuthorPosts
-
April 10, 2016 at 8:52 pm #1100650
Birgit Bauer
ParticipantHello,
sorry for opening the third topic, but the last one was closed already.This topic is following the discussion we had here:
The first comma in the file:
plugins/the-events-calendar/src/views/modules/meta/venue.phpworked very well and the comma is no longer shown.
but for:
plugins/the-events-calendar/src/views/list/single-event.phpI 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!
April 11, 2016 at 9:16 am #1100839George
ParticipantHey @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,
GeorgeApril 26, 2016 at 9:35 am #1107169Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Delete a comma 3’ is closed to new replies.
