Support

Home Forums Event Espresso Premium Change text under button for copying primary attendee info

Change text under button for copying primary attendee info

Posted: February 5, 2018 at 9:12 pm


TOCIFT

February 5, 2018 at 9:12 pm

I would like to change the following text:

This option allows you to use the above information for all additional attendee question fields. Please note: some events may have additional questions that you may still be required to answer in order to complete your registration.

to:
This option allows you to use the above information for all sponsor fields. PLEASE NOTE: YOU MUST USE A DIFFERENT NAME FOR EACH ANGLER, GUIDE, GUEST OR TABLE WORKER SO THEY CAN RECEIVE A BADGE AT THE VENUE FOR ENTRY INTO THE EVENT.

Thanks!

Laura


Tony

  • Support Staff

February 6, 2018 at 3:53 am

Hi Laura,

Remember the translation function we added to your site in this thread:

https://eventespresso.com/topic/remove-the-border-around-the-registration-forms/#post-261468

You can use that to change the above text, add:

'This option allows you to use the above information for all additional registrant question fields. <span>(&nbsp;Please note that some events may have additional questions that you may still be required to answer in order to complete your registration.&nbsp;)</span>' => 'This option allows you to use the above information for all additional registrant question fields. <strong>PLEASE NOTE: YOU MUST USE A DIFFERENT NAME FOR EACH ANGLER, GUIDE, GUEST OR TABLE WORKER SO THEY CAN RECEIVE A BADGE AT THE VENUE FOR ENTRY INTO THE EVENT.</strong>',

To your strings array:

$strings = array(
    'Attendee %d' => 'Registrant %d',
    'Use Attendee #1\'s information for ALL attendees' => 'Use Registrants #1\'s information for ALL attendees',
    'This option allows you to use the above information for all additional registrant question fields. <span>(&nbsp;Please note that some events may have additional questions that you may still be required to answer in order to complete your registration.&nbsp;)</span>' => 'This option allows you to use the above information for all additional registrant question fields. <strong>PLEASE NOTE: YOU MUST USE A DIFFERENT NAME FOR EACH ANGLER, GUIDE, GUEST OR TABLE WORKER SO THEY CAN RECEIVE A BADGE AT THE VENUE FOR ENTRY INTO THE EVENT.</strong>',
    // Add some more strings here
);

Then check the checkout again.


TOCIFT

February 9, 2018 at 9:51 am

Can I use html tags to change the color of these words so they stand out more? Or is there another way to do so?


Tony

  • Support Staff

February 9, 2018 at 11:18 am

It depends what you want to do, but yes you can use HTML tags in the above.

Or style the strong tags currently used using something like:

.spco-copy-attendee-pg strong {
    color: red;
}


TOCIFT

February 9, 2018 at 12:54 pm

Thanks!

I would also like to change the following text:

This option allows you to use the above information for all additional attendee question fields. Please note: some events may have additional questions that you may still be required to answer in order to complete your registration.

I used the following from what you showed me before, but it did not seem to work:

// This is an array of original strings
// and what they should be replaced with
$strings = array(
‘Attendee Information’ => ‘Participant and Sponsorship Information’,
‘Attendee %d’ => ‘Registration %d’,
‘Use Attendee #1\’s information for ALL attendees’ => ‘Use Sponsor #1\’s Information for ALL Sponsor Information’,
‘This option allows you to use the above information for all additional attendee question fields. Please note: some events may have additional questions that you may still be required to answer in order to complete your registration.’ => ‘This option allows you to use the above information for all additional sponsor question fields. ALL ATTENDEE FIELDS MUST BE FILLED IN WITH DIFFERENT ATTENDEE NAMES, BUT CAN BE EDITED LATER.’,
// Add some more strings here
);

Thanks!


Josh

  • Support Staff

February 9, 2018 at 3:14 pm

Hi Laura,

The actual text for that string contains placeholders for html tags. So it’s actually this:

This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.


TOCIFT

February 9, 2018 at 4:20 pm

Ok. I used this and it didn’t work. Can you check my code? Thanks!

// This is an array of original strings
// and what they should be replaced with
$strings = array(
‘Attendee Information’ => ‘Participant and Sponsorship Information’,
‘Attendee %d’ => ‘Registration %d’,
‘Use Attendee #1\’s information for ALL attendees’ => ‘Use Sponsor #1\’s Information for ALL Sponsor Information’,
‘This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.’ => ‘This option allows you to use the above information for all additional sponsor question fields. %sALL ATTENDEE FIELDS MUST BE FILLED IN WITH DIFFERENT ATTENDEE NAMES, BUT CAN BE EDITED LATER.%s’,
// Add some more strings here
);


TOCIFT

February 9, 2018 at 4:21 pm

I also want to make the all caps information red.

Thanks!


Josh

  • Support Staff

February 12, 2018 at 3:23 pm

The code seems fine but is lacking some context and has some formatting issues with being formatted into a block quote. The forums can be a tricky place to post code snippets which is why we ask everyone to post code to a pastebin or GitHub gist.

Here’s a different way to change that text that involves using a specific filter hook instead, that will also allow you to have more control over the markup:


TOCIFT

February 13, 2018 at 5:52 pm

Worked great! Thank you so much!

The support post ‘Change text under button for copying primary attendee info’ 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