Support

Home Forums Event Espresso Premium Custom event element roder not working

Custom event element roder not working

Posted: August 16, 2016 at 8:59 am

Viewing 11 reply threads


jbrandligt2

August 16, 2016 at 8:59 am

Hi,
I’m trying to change the order of the event elements with the drag and drop feature in the admin pannel. I have put the event description on top, but the order is not changed in the front-end. As far as I know I’m not using any filters to change the display order, at least I did not make any filters, I would not know how to do that. I’m on the latest version ov EE, 4.9.8.p. Is there something I’m missing?
Thanks Jeroen


Josh

  • Support Staff

August 16, 2016 at 9:40 am

Hi Jeroen,

Is your WordPress theme loading any custom templates for displaying events? A good way to check is by temporarily switching to another WordPress theme to see if the display order changes work with the other theme.


jbrandligt2

August 17, 2016 at 1:12 am

Hi Josh, thanks for replying. The problem lies in the child theme I am using. I copied the single-espresso_events.php (amongst some others) to disable the sidebar. When I rename this file it works fine. So what do I have to alter in this file to make it work? I really need it there to have the sidebars disabled…


Tony

  • Support Staff

August 17, 2016 at 3:37 am

So to confirm single-espresso_events.php is a copy of your standard single.php template just with the sidebar removed?

Your not manually calling any EE templates from within that file?

If not you can just add this filter to your functions.php file:

add_filter( 'FHEE__EED_Event_Single__template_include__allow_custom_selected_template', '__return_true' );

When you use a single-espresso_events.php (or archive-espresso_events.php) template file EE stops injecting the EE details and uses the templates as it expects your are taking over control of all of the output, the above filter stops that from happening.


jbrandligt2

August 17, 2016 at 5:28 am

Thanks Tony. Correct, only thing I did was disabling the side bar. I added the function to functions.php as you suggested. It seems to work, but now I’m facing the problem that I see the ticket details twice on the event page…


Tony

  • Support Staff

August 17, 2016 at 7:53 am

Are you using the [ESPRESSO_TICKET_SELECTOR] shortcode in the event?

We’ve seen that happen when the theme (or a plugin) is filtering the_content or doing something strange with the_excerpt.

If you temporarily switch to another theme such as TwentyFourteen (you can use live preview if you prefer) does it show the ticket selector on the event page then? (If so it’s a plugin)

Can you link me to the event too please?


jbrandligt2

August 17, 2016 at 8:49 am

No I’m not using the shortcode, just using the Event Tickets & Datetimes section in the editor.
If I rename the single-espresso_events.php file in the child-theme it displays the ticket selector just fine, so it must be something with this file. Other themes play nice as well.
I will send you access to the page by mail.


jbrandligt2

August 17, 2016 at 8:51 am

Oh, its a noreply mail adres your mails come from, can I pm you somewhere?


Tony

  • Support Staff

August 17, 2016 at 9:00 am

If we need login details to access the page yoou can use this form:

https://eventespresso.com/send-login-details/

Can you post the content of your single-espresso_events.php file so I can take a look. You can use something like http://pastebin.com/ or create a gist and post the url here.


jbrandligt2

August 19, 2016 at 7:47 am

Hi Tony, did you receive the login details i sent with the form above?


Tony

  • Support Staff

August 19, 2016 at 8:07 am

Yes I did, thank you.

I looks like you just copied the single-espresso_events.php template file from Espresso_Arabica_2014 within Event Espresso, is that right?

That may work but your better to base you single-espresso_events.php from your current themes single.php file as the classess etc may not match so CSS from your current theme may not apply (it depends on the theme).

Either way, your currently calling:

espresso_get_template_part( 'content', 'espresso_events' );

Which loads all of the template parts individually, and then using the function I mentioned above to tell EE to inject the details again.

When using this filter:

add_filter( 'FHEE__EED_Event_Single__template_include__allow_custom_selected_template', '__return_true' );

You want to just call the_content(); in place of espresso_get_template_part( 'content', 'espresso_events' );


jbrandligt2

August 19, 2016 at 8:48 am

Thanks for clearing that up for me. It works now as expected. Thank you for the support, issue resolved 🙂

Viewing 11 reply threads

The support post ‘Custom event element roder not working’ 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