Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Assuming Events > Settings > Templates > Events Template is set to "Default
- * Events Template" then you could add this code to your custom
- * ecp-page-template.php - placing it just above the get_header() call.
- *
- * You would of course have to change the names of the template parts to actual
- * templates within your theme. You could then have different layouts according
- * to whether a month (grid) view or an upcoming events list is being requested.
- */
- if (tribe_is_month()) {
- get_template_part('custom-layout-for-grids');
- return;
- }
- elseif (tribe_is_upcoming()) {
- get_template_part('custom-layout-for-lists');
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment