Support

Home Forums Event Espresso Premium Help with changing default template

Help with changing default template

Posted: January 17, 2019 at 5:57 am

Viewing 2 reply threads


Embercombe

January 17, 2019 at 5:57 am

Hi, I have taken over a wp site that uses EE and they have been having problems with event tickets, venue, dates – the EE elements – not showing on single event pages. I come from a Drupal background so this is all a bit new to me. I found that selecting one of the other templates in the parent theme (x) got the tickets to show but not other page elements so after a bit of trial and error I created a fresh template in the child theme (ethos stack) that works. However, this means that the end user has to select my new page template and I would like it to be the default. The single espresso template just references wp-single.php, which I assume from the php that is the file in the child theme stack (ethos). Whatever I do I cant get it to pick up my template. Although the single espresso file is calling the same file as so

<?php x_get_view( x_get_stack(), ‘wp’, ‘espresso’ ); ?>

in both the single espresso template file and my new template file in the parent theme, only the new template is working. As far as I understand, with limited WP experience. The parent theme template calls the file in the child theme. Is there something in the plugin, related to the template single-espresso_events.php, that is stopping the my child theme template being called? I am using template debugger and the output of using single-espresso_events.php or my custom template is exactly the same, with the exception that custom template with the actual code in the child theme has an asterisk by it but doesnt when using single-espresso_events.php. I dont know what this means though.


Embercombe

January 17, 2019 at 5:58 am

Edit


Josh

  • Support Staff

January 17, 2019 at 6:33 am

Hi,

You can do this instead:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/jf_ee_custom_post_type_template.php

Where you add the code snippet from the above-linked page to your child theme’s functions.php file. Then what that will do is change the loaded template to be page.php. You can also change the code where it says page.php to another template as well.

Viewing 2 reply threads

The support post ‘Help with changing default template’ 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