Posted: January 7, 2014 at 7:25 pm
|
Hi, Pete |
|
Hi, I’m not 100% sure what you are trying to remove, but a good starting point would be to remove the registration form. You can do this in each event, by changing the option “Display registration form?” to No. This is found on the right hand side, in the Event Options box. |
|
Hi, We would also like to remove the view details box from the calendar when you click on an event which has no registration, for example 18th Jan. We are new to the product so any help you can give us would be gratefully received. I hope this better explains the issue. Cheers |
Hi Peter, The reason that the event times display within the registration form area is because there’s a feature that allows the selection of a time slot within the registration form. So if the event has multiple times, the time can be selected when the registration form is filled out. The event details page shares the same template as the registration page. The section that displays the registration form doesn’t get displayed if the display registration form option is set to No. Adding the registration time to display on events that do not have a registration form can be accomplished by using an action hook. By using a hook you avoid directly editing the event details/registration template. Here’s something you can add to your custom file add-on’s custom_functions.php file or in a custom snippet plugin that will add times for the events that have the registration forms set to not display: add_action( 'action_hook_espresso_social_display_buttons', 'ee_display_event_times', 10, 1); function ee_display_event_times( $event_id ) { //get info for this event $event = espresso_get_event( $event_id ); $display_reg_form = $event->display_reg_form; // display the event times if the registration form is not set to display if ( $display_reg_form == 'N' ) { echo '<p class="event_time">'; echo event_espresso_time_dropdown( $event_id ); echo '</p>'; } } With regard to your other request:
I’m afraid that this would require hacking the calendar script directly, and isn’t something that I would recommend doing. If you really need to remove the View Details text that displays when the event has not registration, you can remove the View Details text from line 725 of the calendar plugin’s espresso-calendar.php file. |
|
|
Hi Josh, Thanks for the detailed reply. I will take a look and thanks for the advice. |
|
Please let us know if you need any further assistance. |
The support post ‘Displaying event details without need to register’ 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.