Home Forums Event Espresso Premium Change EE4 Slug in Child Theme

Change EE4 Slug in Child Theme

Posted: July 14, 2014 at 7:21 am


July 14, 2014 at 7:21 am

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.

Many thanks

// change event espresso slug
add_filter( ‘FHEE__EE_Register_CPTs__register_CPT__rewrite’, ‘my_custom_event_slug’, 10, 2 );
function my_custom_event_slug( $slug, $post_type ) {
if ( $post_type == ‘espresso_events’ ) {
$custom_slug = array( ‘slug’ => ‘kurse’ );
return $custom_slug;
return $slug;

// 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’;


  • Support Staff

July 14, 2014 at 10:08 am

Hi Ray,

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.


July 14, 2014 at 12:08 pm

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..



  • Support Staff

July 15, 2014 at 1:40 am

Hi Ray,

Without seeing the code its hard to tell.

Have you copied the arabica child theme and modified that or are you copying individual files over and modifying them?


July 15, 2014 at 1:44 am

Agree. I opened a priority ticket to get support.

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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Ray 5 years, 12 months ago ago

Topic Tags

Tagged: , , ,


This topic is: resolved
Do NOT follow this link or you will be banned from the site!