Support

Home Forums Event Espresso Premium Event Registration page tweaks

Event Registration page tweaks

Posted: August 16, 2013 at 1:02 pm

Viewing 5 reply threads


Andy Dentone

August 16, 2013 at 1:02 pm

Hi Event Espresso Team & Community!

I have some questions from my client:

1) Is there an easy way to add the Ending Date to the “event-meta” area on this page: http://wsmta.wdwalr.us/event-registration/ ?

2) Is there a way to rename “Attendee #N” to “Student #N” (where N starts at 1 instead of 2)? http://wsmta.wdwalr.us/event-registration/?ee=1

3) Do you have any css examples or suggestions on tightening up the description area at the top – there seems to be too much whitespace and wasted space – and the alignment is off with Start and End dates and times not lining up: http://wsmta.wdwalr.us/event-registration/?ee=1

Thanks for your help!

  • This topic was modified 11 years, 4 months ago by Andy Dentone. Reason: trying to use the OL & LI tags for numbering the 3 questions... doesn't seem to work
  • This topic was modified 11 years, 4 months ago by Andy Dentone. Reason: just manually numbered them instead


Josh

  • Support Staff

August 16, 2013 at 1:16 pm

Hi Andy,

With #1, the date code could be copied from registration_page_display.php and adapted use in event_list_display.php. Please see these notes on modifying templates:

https://eventespresso.com/wiki/put-custom-templates/
Note that some templates need to be copied over in pairs. For example, if you make a change to event_list_display.php, you’ll need to copy over it’s counterpart event_list.php. Also please note that if we need to make a change to a template in version of Event Espresso, you’ll need to copy this change into your custom template to stay current with the plugin.

We recommend using Diffmerge to help merge changes into custom templates.

With #2, the text string part can be changed in /wp-content/uploads/espresso/custom_functions in the custom gettext funciton there where it says add more strings here.

The renumbering part will involve refactoring the additional attendee dropdown functions which is outside the scope of support.

With #3, I do not have any examples, but you can use a tool like Firebug to find which style rules are adding the additional white space. Here are a few references that will help:

http://css-tricks.com/video-screencasts/15-introduction-to-firebug/
http://htmldog.com/guides/cssbeginner/


Andy Dentone

August 16, 2013 at 4:08 pm

#3 – css tweaking – this is what I came up with that should work for us just fine (posted for the sake of the community)

.event_espresso_form_wrapper .start_date span,
.event-meta .start_date span,
.event_espresso_form_wrapper .event_time span {
display: block;
width: 15%;
float: left;
margin: 0;
padding: 0;
line-height: 1.5em;
}

.span_event_time_label,
.span_event_date_label {
clear: left;
}

#event-reg-form-groups { display: block; clear: both; padding-top: 2em; }


Andy Dentone

August 16, 2013 at 7:47 pm

Can I drop the “#2” from here: http://screencast.com/t/DDzoQ5TBj
(and all subsequent numbers?)
on this page: http://wsmta.wdwalr.us/event-registration/?ee=1

I’d also like to replace “Attendee” there, but can’t find which template file to edit.
I tried searching them for “additional-attendee-nmbr-h4” (the class that identifies it) without any luck…
I also edited the “custom_functions.php” file to include:

<code>
        &#039;Attendee &#039; =&gt; &#039;Student &#039;,
        &#039;Attendee&#039; =&gt; &#039;Student&#039;,
</code>

but that didn’t work either.

My Goal (client request) is to just have
Teacher:
and then
Student:
Student:
Student:
(without the numbers that identify a specific attendee #)

Thanks!


Tony

  • Support Staff

August 18, 2013 at 10:15 am

Hi Andy,

To make both the modifications requested you edit event-espresso/includes/functions/main.php, line 166. ‘Attendee #’ change to (in this case) ‘Student’ removing the space and hash from there and then remove XXXXXX before the closing h4 tag. Leaving:

$attendee_form .= '<h4 class="additional-attendee-nmbr-h4">' . __('Student', 'event_espresso') . '</h4>';

Hope this helps.


Andy Dentone

August 19, 2013 at 10:19 am

Thanks, Tony!

I, instead, did this:
1) added this to my “mycustom_filter_gettext” function in wp-content/uploads/espresso/custom_functions.php
'Attendee #' => 'Student'
2) removed the “XXXXXX” from line 166 in main.php (after making a backup of that file, and duplicating that line and commenting out the original.

That worked great!
Thanks!

Viewing 5 reply threads

The support post ‘Event Registration page tweaks’ 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