Created
March 15, 2012 16:53
-
-
Save jo-snips/2045249 to your computer and use it in GitHub Desktop.
The Events Calendar: Alternate Page Title
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
<h2> | |
<?php | |
if(tribe_is_month()) { | |
echo 'Calendar Grid'; | |
} else if(tribe_is_event() && !tribe_is_day() && !is_single()) { | |
echo 'Event List'; | |
} else if(tribe_is_event() && !tribe_is_day() && is_single()) { | |
echo 'Single Event'; | |
} else if(tribe_is_day()) { | |
echo 'Single Day'; | |
} else { | |
the_title(); | |
} | |
?> | |
</h2> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use in either page.php or ecp-page-template.php