Home › Forums › Calendar Products › Community Events › Title For Submit Page
- This topic has 3 replies, 2 voices, and was last updated 6 years, 10 months ago by Joshua.
-
AuthorPosts
-
May 19, 2017 at 1:11 pm #1286485JoshuaParticipant
I have a closed thread on this matter, but I need to reopen.
https://theeventscalendar.com/support/forums/topic/changing-the-events-title-tag-in-browser-submissions/It turns out my solution adds the new title to all pages. I need to adjust the function to only display on the submit page and I can not calculate the function on the documentation you have available.
add_filter('the_seo_framework_pre_add_title', 'change_the_title'); function change_the_title() { return 'Your Custom Title Here'; }
It needs some sort of IF function. The plugin author for SEO Framework suggested something like this, but we simply could not figure it out.
add_filter( 'the_seo_framework_pre_add_title', function( $title = '', $args = array(), $escape = true ) { if ( tribe_ce_is_submit() ) { $title = 'Your new Title'; } return $title; }, 10, 3 );
Can you assist with completing this somehow?
May 22, 2017 at 9:17 pm #1287488JenniferKeymasterHi Joshua,
I’d be happy to help you with this!
I believe tribe_is_community_edit_event_page is what you’re looking for.
Try:
add_filter('the_seo_framework_pre_add_title', 'change_the_title');
function change_the_title() {
if( tribe_is_community_edit_event_page() ) {
return 'Your Custom Title Here';
}
}
Let me know how it goes!
June 13, 2017 at 9:36 am #1297334Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Title For Submit Page’ is closed to new replies.