Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To show future months even with no events after 3.7 in The Events Calendar.
- move this file to your theme: the-events-calendar\views\month\nav.php
- Rename tribe_events_the_next_month_link(); to custom_tribe_events_the_next_month_link();
- Place this function in your Theme's Function.php
- /**
- * Display an html link to the next month. Used in the month navigation.
- *
- * @return void
- * @author Jessica Yazbek
- * @uses tribe_get_next_month_text()
- * @since 3.0
- **/
- function custom_tribe_events_the_next_month_link() {
- $url = tribe_get_next_month_link();
- try {
- $date = TribeEvents::instance()->nextMonth( tribe_get_month_view_date() );
- $text = tribe_get_next_month_text();
- $html = '<a data-month="'. $date .'" href="' . $url . '" rel="next">'. $text .' <span>»</span></a>';
- } catch ( OverflowException $e ) {
- $html = '';
- }
- echo apply_filters('custom_tribe_events_the_next_month_link', $html);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement