Support

Home Forums Event Espresso Premium Modify Templates

Modify Templates

Posted: December 5, 2013 at 3:41 am

Viewing 5 reply threads


David

December 5, 2013 at 3:41 am

Hi

What is the best way to modify templates used by the venues shortcode [ESPRESSO_VENUE id=”1″]’?
I need to change the link text ‘Map and Directions’ and add in more div tags etc.

Thanks
Geoff


Tony

  • Support Staff

December 5, 2013 at 4:06 am

Hi Geoff,

When altering text we recommend ‘translating‘ that line of text rather than altering core/functions but as you want to add in extra divs it doesn’t matter so much in this case, but something to remember ๐Ÿ™‚

To alter the code output by that shortcode you need to edit event-espresso/includes/shortcodes.php line 663-838.

Personally I would recommend you copy the entire function (lines 665 to 835 as you don’t need the if (!function_exists()) wrapper) into custom_functions.php from the Custom Files Add-on to override the core function, this will keep your modifications ‘update-safe’


David

December 5, 2013 at 7:24 am

Hi Tony, many thanks.

What template does the registration form reside in so that I can update that as well?


Tony

  • Support Staff

December 5, 2013 at 7:33 am

Do you mean the default registration page used for each event?

Or just the form when using a shortcode?


David

December 5, 2013 at 7:35 am

Sorry the default registration page.


Tony

  • Support Staff

December 5, 2013 at 7:41 am

That’s all within a template file ๐Ÿ™‚

event-espresso/templates/registration_page.php & registration_page_display.php

Copy these to wp-content/uploads/espresso/templates and modify there.

Note when modifying some templates, some are in pairs, this can usually be see with *template*_display, you need to copy both the main and _display file when modifying.

Viewing 5 reply threads

The support post ‘Modify Templates’ 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.

Event Espresso