Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Modify Templates | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Modify Templates

Modify Templates

Posted: December 5, 2013 at 3:41 am

Viewing 5 reply threads


Geoff Lewin

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


Anonymous

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’


Geoff Lewin

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?


Anonymous

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?


Geoff Lewin

December 5, 2013 at 7:35 am

Sorry the default registration page.


Anonymous

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 - Staging Server