Support

Home Forums Event Espresso Premium Problems moving the description on the event page for purchasing tickets

Problems moving the description on the event page for purchasing tickets

Posted: September 7, 2015 at 10:20 pm


cellbotics

September 7, 2015 at 10:20 pm

We are trying to get this file modified so that event description is above the actual tickets to purchase. But every time we try to change the order, it crashes. What do we need to do to get the description moved to the top of the single event ticket page?

Plugin/event-espresso-core-reg/modules/event_single/EED_Event_Single.module.php
this is the function:

public static function event_details( $content )

and this is the order of the content
add_filter( ‘the_content’, array( ‘EED_Event_Single’, ‘event_datetimes’ ), 110, 1 );
add_filter( ‘the_content’, array( ‘EED_Event_Single’, ‘event_tickets’ ), 120, 1 );
add_filter( ‘the_content’, array( ‘EED_Event_Single’, ‘event_venues’ ), 130, 1 );
// now load our template
$template = EEH_Template::locate_template( ‘content-espresso_events-details.php’ );


Tony

  • Support Staff

September 8, 2015 at 6:55 am

Hi Tia,

/event-espresso-core-reg/modules/event_single/EED_Event_Single.module.php

Please do not modify core files/functions within Event Espresso, we can not provide support if the plugin has been modified and each update to Event Espresso will overwrite those modifications.

Most of the EE output can be altered using hooks or template files within your theme if you prefer, changing the order of the event details can be done using a function such as this:

https://gist.github.com/joshfeck/1151c89082ccb5c0b478

Or

https://gist.github.com/Pebblo/def080a7134c34b00047

Depending on the exact order you want the details to be in.

You can add that to your themes functions.php file (not recommend for the same reasons as above) or a Site Specific Plugin


Lorenzo Orlando Caum

  • Support Staff

November 18, 2015 at 8:54 am

Hello again Tia,

As of Event Espresso 4.8.21, there is a custom display re-order option available in the WordPress dashboard.

Backup your WordPress and update your software

https://eventespresso.com/wiki/how-to-back-up-your-site/

You can see the change log for Event Espresso 4 here:

https://eventespresso.com/wiki/ee4-changelog/

Remove existing filters for adjusting the order

If you have used some of the suggested filters to adjust the order of your event elements, then you’ll want to first remove those from your website and they may have been added to your child theme’s functions.php file or a site specific plugin.

Set a custom order through the Templates screen

Afterwards, go to your WP dashboard (WP-admin) –> Event Espresso –> Events –> Templates. The Use Custom Display Order options in the Templates screen can be used to reorder the events elements on the single event page as well as the events listing page.

Again, be sure that any of the filters for adjusting the order have been removed from your site specific plugin or your child theme’s functions.php file before turning on the template reorder option. Otherwise, you may see duplicate content.

Thanks


Lorenzo

The support post ‘Problems moving the description on the event page for purchasing tickets’ 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