• Resolved bobbobbius

    (@bobbobbius)


    Hello!
    Thanks for plugin!

    How can i add a custom title separator?

    I have previously used Yoast SEO and code like this in Function.php:

    function add_new_separator( $separators ) {
    
    	$separators_new = [
    		'sc-flore'       => '?',
    		'sc-air'         => '?',
    		'sc-drive'       => '?',
    		'sc-skull'       => '?',
    		'sc-anchor'      => '?',
    		'sc-circle-star' => '?',
    		'sc-gier'        => '?',
    	];
    
    	$separators = array_merge( $separators, $separators_new );
    
    	return $separators;
    }
    
    add_filter( 'wpseo_separator_options', 'add_new_separator' );
Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Interestingly, the code is usable with Yoast SEO and TSF. Simply add this line to the code above, and it’ll work:

    add_filter( 'the_seo_framework_separator_list', 'add_new_separator' );
    

    This doesn’t mean that the filters are compatible in every scenario, however.

    Please be mindful that the separator serves a purpose (of separating title parts…) and that search engines might not recognize every separator you throw at it.

    Cheers ??

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Title Separator’ is closed to new replies.