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.
Support forum for Event Espresso 3 and Event Espresso 4.