Template does not work
-
Hi there,
Firstly, thank you for your great plugin! I am using it on a website and having problem with template override.
Looking at the code, I tried to register my theme to support eventbrite. I did this in functions.php:
add_theme_support( 'eventbrite' );
Then in the theme folder, I created eventbrite/eventbrite-index.php , but it just does not work.
I then looked further at the plugin code, and found the error. In wp-content/plugins/eventbrite-api/inc/class-eventbrite-templates.php line 156 and 161. The current code is:
$template = esc_url( get_stylesheet_directory() . '/eventbrite/eventbrite-index.php' );
It causes the error as get_stylesheet_directory returns the absolute path, not an URL. So I changed it to this:
$template = get_stylesheet_directory() . '/eventbrite/eventbrite-index.php';
It working fine now, but still be my own custom hack. Hopefully this fix will be applied for the next version.
Cheers!
- The topic ‘Template does not work’ is closed to new replies.