Custom Template – Child theme issue
-
I attempted to set a custom template using the below in my functions.php
function custom_timeline_express_template_file( $template_file ) { $template_file = 'single-express-announcement.php'; return $template_file; } add_filter( 'timeline_express_custom_template' , 'custom_timeline_express_template_file' , 10 );
I had an issue, however because Timeline Express looks for the template using the TEMPLATEPATH which points to the Parent theme, instead of my currently active theme which is a child.
Changing TEMPLATEPATH to STYLESHEETPATH fixes the issue, but obviously if I make this change to the plugin myself it will be wiped out on next update.
Would it be worth considering using STYLESHEETPATH so that Timeline Express can integrate with child themes correctly?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Template – Child theme issue’ is closed to new replies.