Created
October 10, 2016 17:05
-
-
Save andrasguseo/ee3c79b7091a6e7bbb36ca5287575d74 to your computer and use it in GitHub Desktop.
For Jonathan - Change title of "This Week" widget in Events Calendar Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copy this file: | |
* wp-content\plugins\events-calendar-pro\src\views\pro\widgets\this-week-widget.php | |
* Here: | |
* wp-content\themes\{your-theme}\tribe-events\pro\widgets\this-week-widget.php | |
* Replace lines 20-22 with the below | |
*/ | |
<!-- This Week Title --> | |
<?php do_action( 'tribe_events_before_this_week_title' ) ?> | |
<?php $thismonday = tribe_get_this_week_first_week_day( $this_week_template_vars['start_date'] ); | |
$thismonday = date_create( $thismonday )->format( 'F j, Y' ); ?> | |
<h2 class="tribe-events-page-title">Calendar for the week of <?php echo $thismonday; ?></h2> | |
<?php do_action( 'tribe_events_after_this_week_title' ) ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment