Created
December 2, 2016 21:21
-
-
Save theJasonJones/037d5e4e76691685dbe4db2fb8294eec to your computer and use it in GitHub Desktop.
f you want to set the main events page title to appear similar to the titles listed on the rest of the site you can use this function.
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
add_filter('wp_title', 'normal_tribe_events_title'); | |
function normal_tribe_events_title($title) { | |
if( get_post_type() == 'tribe_events' ){ | |
$title = get_bloginfo('name'); | |
return $title; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment