Posted: September 21, 2018 at 8:10 am
|
Hi, I’m adapting a custom version of template_file=espresso-events-table-template-toggle.template.php which I’ve renamed pe-template_file=espresso-events-table-template-toggle.template.php and it resides in my child theme directory. Couple of quick questions, – can I display the full venue address as well as the name? There’s a test page here https://www.impactmh.org.uk/table-test/ – password is lemmein Thanks Phil |
Hi Phil, The toggle template just uses whatever date format is set in your site’s WP > Settings > General page. If you want to override the format used there, you can edit line 3 which has:
Then add this template tag for the map: Then add this template tag for the venue address: |
|
|
Thanks Josh. How can we get the start time to display after the date? |
Hi Phil, Your screenshot shows the start time displaying after the date. So whatever you’ve changed that removed it, you’ll add that back. |
|
|
Hi Josh, I haven’t changed anything that I can see. Here’s the code
I can’t get the maps to display either. Here’s a live page Cheers Phil |
|
Hi Josh, I’ve got the start times to display by using
The only thing that’s not working now is the maps I’ve added Thanks Phil |
Can you check to see if maybe you accidentally removed line 4 which sets the time format? |
|
|
Ahhh. That’s it 🙂 I know have
And that’s working a treat. Any idea why my venue maps aren’t displaying? <?php espresso_venue_gmap( $post->ID ); ?> Thanks Phil |
You could try a static map instead. Example code follows:
|
|
|
September 21, 2018 at 10:00 am Thanks Josh, does that just drop in between the <td> tags? |
September 21, 2018 at 10:20 am That’s up to you depending on where you want to put the map. |
|
|
September 21, 2018 at 10:21 am Yep, that’s all working a treat. Thanks for the great support as always. Have a good weekend. Cheers Phil |
The support post ‘Using Custom Version Of The Toggle Template’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.