You change the array of original strings and what they should be replaced with. So in that example code you’ll see an array of strings that start on line 9 and end on line 12. Your array of strings will include:
'View Details' => 'Buy Tickets',
and you can add more to that array, just like the example has more than one set of strings to change.
I saw that there are other text changes in this script, so I tried to change the text of another button and it failed.
After a person clicks the Buy Tickets button, the Add to Event Cart button appears.
I tried to change the text of this Add to Event Cart button and it fails.
// This is an array of original strings
// and what they should be replaced with
$strings = array(
'View Details' => 'Buy Tickets',
'Add to Event Cart' => 'Add Tickets to Cart',
// Add some more strings here
);
The support post ‘Need help using the function to change text’ 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.