Support

Home Forums Event Espresso Premium How to remove "or" in the regisration link?

How to remove "or" in the regisration link?

Posted: November 2, 2014 at 8:59 am

Viewing 4 reply threads


aryon hopkins

November 2, 2014 at 8:59 am

Which file do I update to remove the “or”
“or Join the Class”

Development site.

I already used display: none to hide the Register link.

Thanks!


Lorenzo Orlando Caum

  • Support Staff

November 2, 2014 at 3:13 pm

Hi,

I did not see that verbiage. However, I did find this one:

Login or Create an Account to Register

A gettext filter should be able to change that:

function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Login or Create an Account to Register' => 'Replace This Phrase',
    );

    if ( isset( $strings[$original] ) ) {
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );

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


Lorenzo


aryon hopkins

November 5, 2014 at 10:18 am

Thanks for the followup.

I actually used the process you recommended to update that specific verbiage.

I realize that you are unable to see the verbiage I am referring to unless you’re logged in so I am including it here as an image:
verbiage

I have also used the other process of updating the wording in the language files. Unfortunately I there are too many instances of “or” with words like core in a 30,000 line file to make the search effective. I tried specifically searching “or” with quotations and searching for verbiage near “or”.

Can you offer any insight on how to narrow my search to a specific section within this language file?


Tony

  • Support Staff

November 5, 2014 at 10:30 am

Hi Aryon,

That specific or is wrapped between two spaces, so ” or “.

You can input that into the function Lorenzo provided, use POEdit and the PO/MO files (more info here) or edit the event_list template to remove this.

If you prefer to edit the templates copy event_list.php and event_list_display.php from event-espresso/templates/ to wp-content/uploads/espresso/templates/

In that location edit the file event_list_display.php, online 135 you’ll find:

'separator' => __(" or ", 'event_espresso')

either remove or comment out that line:

//'separator' => __(" or ", 'event_espresso')

That will remove ‘or’ from the Cart link.


aryon hopkins

November 6, 2014 at 8:14 am

Perfect. Fixed.

THANK YOU. THANK YOU. THANK YOU. THANK YOU. THANK YOU. THANK YOU.

Viewing 4 reply threads

The support post ‘How to remove "or" in the regisration link?’ 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