Posted: November 2, 2014 at 8:59 am
|
Which file do I update to remove the “or” I already used display: none to hide the Register link. Thanks! |
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/ — |
|
|
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: 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? |
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. |
|
|
Perfect. Fixed. THANK YOU. THANK YOU. THANK YOU. THANK YOU. THANK YOU. THANK YOU. |
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.