Posted: August 16, 2016 at 8:59 am
|
Hi, |
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. |
|
|
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… |
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:
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. |
|
|
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… |
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? |
|
|
No I’m not using the shortcode, just using the Event Tickets & Datetimes section in the editor. |
|
Oh, its a noreply mail adres your mails come from, can I pm you somewhere? |
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. |
|
|
Hi Tony, did you receive the login details i sent with the form above? |
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:
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:
You want to just call |
|
|
Thanks for clearing that up for me. It works now as expected. Thank you for the support, issue resolved 🙂 |
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.