Title For Submit Page

Home Forums Calendar Products Community Events Title For Submit Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1286485
    Joshua
    Participant

    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?

    #1287488
    Jennifer
    Keymaster

    Hi 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!

    #1297334
    Support Droid
    Keymaster

    Hey 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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Title For Submit Page’ is closed to new replies.