Hi
I was trying to move the following function’s to the child theme, so they are not flushed when the templates is updated. But not working. Can someone help me?
I moved the EE4 template files as well.
// event espresso date time format in ticket details. point to file
add_filter (‘FHEE__EE_Ticket_Selector__display_ticket_selector__template_path’, ‘my_custom_ticket_selector_template_location’);
function my_custom_ticket_selector_template_location(){
return get_stylesheet_directory() . ‘/ticket_selector_chart.template.php’;
}
There should be no difference when using the child themes function.php file.
The functions.php file from a Child theme is loaded right before the parents functions.php file.
Are any errors/notices thrown with WP_Debug enabled?
Also just to confirm, get_stylesheet_directory() will point to the child theme’s directory, not the parent’s so you custom template should be there. Reading above it sounds like you have this already but just wanted to confirm.
Thats what I thought 🙂
Thanks for the hint, I found my mistake.
Another question in that respect:
Why is it that the styling is not proper when using content-espresso_events.php in the child theme folder? I also get the date-times block twice.
I was trying to create a template where the date times are at the bottom not beginning..
Agree. I opened a priority ticket to get support.
Thanks.
Viewing 4 reply threads
The support post ‘Change EE4 Slug in Child Theme’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.