Posted: May 13, 2014 at 3:06 am
|
1. On this page – http://sunshinetour.co.uk/events/sunshine-tour-registration/ – at the very bottom, how can we change the venue link to pup up in a new window and/or tab? 2. On page 2 of registration – http://screencast.com/t/VLdQFQtBCF – how can we change the wording of “Attendee Information”? (I’ve tried changing the appropriate strings from the language files in the Quick Localisation plugin and even tried every permutation I could think of. No dice…) Thanks! |
|
Re: #2 – http://screencast.com/t/UYhyzdD26z2 |
|
One more question please: How do we change the verbiage on this button from “Finalize Registration” to “Finalise Registration”…? |
Hello, The venue link can’t be changed without editing the core plugin. For the Attendee Registration text, you can use this: function replace_string_attendee_rc( $content ) { $x = get_the_ID(); if($x == '284') { $content = str_replace(' Attendee', ' NewAttendee', $content); return $content; } else { return $content; } } add_filter( 'the_content', 'replace_string_attendee_rc', 100 ); function replace_string_information_rc( $content ) { $x = get_the_ID(); if($x == '284') { $content = str_replace(' Information', ' NewInformation', $content); return $content; } else { return $content; } } add_filter( 'the_content', 'replace_string_information_rc', 100 ); The number 284 needs to be replaced with your post id for your registration checkout page. You can find this in WordPress admin –> Pages. Then hover over the Registration Checkout page and you’ll see the post id towards the end of the URL. Next, you’ll need to change NewAttendee & NewInformation to something else. For the Finalize Registration button, you can use this: EDIT: use this instead for the button https://eventespresso.com/topic/2-quick-issues/#post-96838 function replace_string_information_fr( $content ) { $x = get_the_ID(); if($x == '284') { $content = str_replace('Finalize Registration', 'Finalise Registration', $content); return $content; } else { return $content; } } add_filter( 'the_content', 'replace_string_information_fr', 100 ); You’ll also need to change 284 to the post id for your registration checkout button. —
|
|
It turns out that Event Espresso has filters for changing the text on buttons. If you use those then you don’t need to do the str_replace and checks for pages. Here’s something you can add to a custom snippet plugin that will change the text on the Finalize button: add_filter ('FHEE__EED_Single_Page_Checkout__registration_checkout__button_text__finalize_registration', 'my_custom_finalise_button'); function my_custom_finalise_button() { return 'Finalise Registration'; } |
|
|
Thanks gentlemen! I successfully made both changes using the “blank plugin” method that Josh linked to. Do you guys ever get tired of hearing how excellent your support is? 🙂 You wrote: “The venue link can’t be changed [opened in a new window/tab] without editing the core plugin.” Seems to me like this is something the majority of your users would want as a core feature. Afterall, what sense does it make to have somebody navigate away from the registration page, especially if they’ve already made some selections for the event…? |
Hi Danny, There are good arguments for and for not using target=”_blank” in a lot of scenarios. Here’s a good summary: http://css-tricks.com/use-target_blank/ If you prefer to change the link to have target=”_blank” this can be done by adding a bit of jQuery to the page, which can be done without hardcoding it into the core plugin file. |
|
The support post ‘2 quick issues’ 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.