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
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.
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’
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.