Support

Home Forums Event Espresso Premium Change Registration Button Text on /event-registration/ page

Change Registration Button Text on /event-registration/ page

Posted: July 15, 2013 at 7:13 pm


Nick Pierno

July 15, 2013 at 7:13 pm

I’m trying to change the button text to something like “More info”. I’ve tried the Peodit method, but Poedit wouldn’t save the file because there were “20 errors found”. I don’t want to go changing a bunch of stuff on that file because I don’t know what I’m doing with language files.

I’d be satisfied with just knowing what template file contains that text or something, or any other suggestions you might have.

Thanks!


Josh

  • Support Staff

July 15, 2013 at 8:42 pm

Hi Nick,

While you could do a find/replace directly in the template files, this could become a lot of work to maintain down the road. What I usually do is use a function to “translate” strings like this one. A function like this one can be placed in the WP theme’s functions.php file or the Event Espresso custom files add-on’s custom-functions.php file:

https://gist.github.com/joshfeck/4962940

lines 6,7 are where you can add your own strings using a format like this:

'Register' => 'More info',


Nick Pierno

July 16, 2013 at 4:43 pm

This worked perfectly. In retrospect I should have already tried this since I’d seen it mentioned in other posts but I was apprehensive. Thanks for your help and patience!

The support post ‘Change Registration Button Text on /event-registration/ page’ 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