Support

Home Forums Event Espresso Premium Daytime text formatting + changing automatic text on the registration form

Daytime text formatting + changing automatic text on the registration form

Posted: January 29, 2018 at 8:11 am

Viewing 8 reply threads


mediaroad_eu

January 29, 2018 at 8:11 am

Hi,

I have 3 questions regarding your EE plugin.

Q1. (please see screenshot 01) On the event registration form, there is a short automatic text on the top saying “In order to process your registration, we ask you to provide the following information. Please note that all fields marked with an asterisk (*) are required.” I would like to add one paragraph to this text and a hyperlink. How can I do it?

Q2. (please see screenshot 02) On the individual event page: I have a small problem with daytimes formatting. If the daytime title is long, it appears in 2 lines. It looks like this field gets cut in the middle of the page. How can I change it so it occupies the entire width of the page and display in 1 line?

Q3. (please see screenshot 02) On the individual event page, in the daytimes section: the calendar and clock icons are not vertically aligned with the text that is on the right. They appear slightly “above” the line of text indicating date and hours. Is there a way to align them vertically so they appear in the middle of the text line?

Thank you in advance for your help.
Best regards,
Paulina


Seth Shoultes

  • Support Staff

January 29, 2018 at 1:47 pm

Hi Paulina,

A1. I believe you will want to use this filter hook to change that content: FHEE__registration_page_attendee_information__attendee_information_pg (hook location: event-espresso-core/modules/single_page_checkout/reg_steps/attendee_information/attendee_info_main.template.php line 7)

A2. I think you will need to use CSS to make the row widths wider. If you can share the URL of one of your events, we can try to share some CSS code that might help.

A3. See A2.


mediaroad_eu

January 30, 2018 at 6:53 am

Hi Seth,
Q1: Thx! I found it 🙂
Q2 + Q3: The example of an event page: http://www.mediaroad.eu/archives/events/media-innovation. I’ll have the same problem with other events so i would like to make some kind of general rule that that would apply to all events. If you could send me some CSS that would be great.
Thank you!


Josh

  • Support Staff

January 31, 2018 at 9:21 am

Hi there,

The following CSS will snap the Datetime text into using the full-width:

.ee-clearfix .ee-event-datetimes-li {
	float: none;
	width: 100%;
}

Then one way to align the icons:

.ee-event-datetimes-li .dashicons-calendar {line-height: 1.2em;}
.ee-event-datetimes-li .dashicons-clock {line-height: 1.9;} 

You can add the CSS to the Customizer, in Appearance > Customize > Additional CSS.


mediaroad_eu

February 4, 2018 at 4:01 am

Hi,

Thank you very much for this.

I have one additional question regarding issue no1 (changing then short automatic text that appears on the top of the registration form).

I am trying to change the hook as suggested by Seth (hook location: event-espresso-core/modules/single_page_checkout/reg_steps/attendee_information/attendee_info_main.template.php line 7) but I keep getting the following error: Unable to communicate back with site to check for fatal errors, so the PHP change was reverted.

How can I change this file?

Thank you & best regards,

Paulina


mediaroad_eu

February 5, 2018 at 3:26 am

I also tried to update the hook file via FTP but my transfer doesn’t get through.


Tony

  • Support Staff

February 5, 2018 at 3:54 am

I am trying to change the hook as suggested by Seth (hook location: event-espresso-core/modules/single_page_checkout/reg_steps/attendee_information/attendee_info_main.template.php line 7)

So you are editing the above file? If so that not how you use hooks, the purpose of a hook is to allow you to change the output without actually editing the core file itself.

I also tried to update the hook file via FTP but my transfer doesn’t get through.

That’s an issue with your host, you would need to contact them to fix this.

However, first, can you confirm if you are editing event-espresso-core/modules/single_page_checkout/reg_steps/attendee_information/attendee_info_main.template.php?

To edit that text I would create a custom functions plugin, we have a guide on how to do that here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Then within that functions plugin you can add something like:

function tw_ee_change_attendee_information_pg( $original_text ) {
    return 'This is some custom text';
}
add_filter('FHEE__registration_page_attendee_information__attendee_information_pg', 'tw_ee_change_attendee_information_pg');

That will replace the text with ‘This some custom text’, so you’ll want to change that for your custom text.


mediaroad_eu

February 6, 2018 at 6:38 am

Hi Tony,
I made the custom function plugin and it worked1 Thanks for your help!
Paulina


Tony

  • Support Staff

February 6, 2018 at 10:27 am

You’re most welcome, I’m glad it worked for you 🙂

Viewing 8 reply threads

The support post ‘Daytime text formatting + changing automatic text on the registration form’ 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