![]() With that in mind, we developed the Eventbrite_Query class, so fetching and displaying events is as simple as making a secondary loop (in fact, the class extends WP_Query). It was important to us that working with the Eventbrite API plugin should be a simple and familiar process for theme developers, with a low barrier to entry. Eventbrite integration with Twenty Fifteen. To see some custom templates in action, check out any of the Twenty* default themes their templates are included in the plugin. That’s it! If support is declared, the plugin will use those templates if they exist, or fall back to the plugin’s templates. Repeat step 3 with eventbrite-single.php and your own single template.Of course, there’s no reason you couldn’t add a content-eventbrite.php to your theme, if you prefer. ![]() The Eventbrite templates don’t use template parts for the post markup, so you may need to compare with content.php or the like. Also, verify that your markup for archive titles matches the Eventbrite template’s page title. Compare the markup in eventbrite-index.php to your own index.php and adjust as necessary.Create an eventbrite folder in your theme, and copy over the plugin’s main template files ( tmpl/eventbrite-index.php and tmpl/eventbrite-single.php). ![]() ![]() * Add theme support for the Eventbrite API plugin.Īdd_action( 'after_setup_theme', 'themeslug_setup' ) There are no arguments, and usually this can be added to a theme’s existing setup function.
0 Comments
Leave a Reply. |