Support

Home Forums Event Espresso Premium Changing Text

Changing Text

Posted: September 20, 2014 at 2:19 pm


Susan Cole

September 20, 2014 at 2:19 pm

I recently migrated this site to a new server and am using quick localisation to update the text. However, this plugin is no longer working

Here is what I have in the fields:

Old: Event Registration
New: Dance Registration
Domain: http://www.bostonassemblies.com (I tried it without www but didn’t work)

Any ideas?


Tony

  • Support Staff

September 22, 2014 at 4:13 am

Hi Susan,

Is it this text your are trying to change? – http://take.ms/ho4I6

If so that is the page title and is output via your sites theme, you’ll notice clicking the ‘Dance Registration’ linke takes you to /event-registration/

If you go to Dashboard -> Pages, you’ll find ‘Event Registration’ there.

Can you tell me what shortcode is currently in use within that page please?


Susan Cole

September 22, 2014 at 5:03 am

That works thanks – the shortcode is [ESPRESSO_EVENTS]

A couple other questions for you:

1. How do I remove the words “Available Tickets” in the grey table at http://www.bostonassemblies.com/events/dover-sherborn-2/

2. How do I change the words “Attendee Information” to “Student Information” at http://www.bostonassemblies.com/registration-checkout/?ee=_register

Thanks,

Susan


Lorenzo Orlando Caum

  • Support Staff

September 22, 2014 at 9:53 am

Hi Susan,

Both of those can be changed by using a plugin like Quick Localization or using a gettext filter.

Examples of both are available here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#plugins


Lorenzo


Susan Cole

September 22, 2014 at 1:44 pm

i did install the quick localization plugin, but the text didn’t change.

Here is what I have in the fields:

Old: Event Registration
New: Dance Registration
Domain: http://www.bostonassemblies.com (I tried it without www but didn’t work)


Lorenzo Orlando Caum

  • Support Staff

September 22, 2014 at 2:26 pm

Hi,

Try this:

Old: Event Registration
New: Dance Registration
Domain: bostonassemblies.com

Or try this in your child theme’s functions.php file or a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

function mycustom_filter_gettext_dance( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Event Registration' => 'Dance Registration'
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext_dance', 10, 3 );


Lorenzo

The support post ‘Changing 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.

Event Espresso