• harperaustralia

    (@harperaustralia)


    Hello, since updating WordPress to 5.4 the page title separator between my brand name and the page name has changed from an em dash — to the default double arrow ». I also have Woocommerce installed and tried the following code in functions.php but the separator still shows as a double arrow.

    function custom_document_title_separator( $sep ) {
    	return '|';
    }
    add_filter( 'document_title_separator', 'custom_document_title_separator', 10, 1 );

    Any assistance would be greatly appreciated. Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nigel M Rodgers

    (@rodgersnigel)

    Hi. I recommend checking in your theme’s customizer. In your admin dashboard got Appearance > Customize. The title separated might be under Site Identity or somewhere else as some themes implement the customizer differently.

    OR

    If you have the Yoast SEO plugin, you can try the following tutorial: https://yoast.com/help/title-separator/

    Thread Starter harperaustralia

    (@harperaustralia)

    Hi @rodgersnigel thanks for your response, this is a custom theme that I have coded and there is no option under Appearance > Customize to change the separator. I would prefer to not have to install another plugin but will definitely consider Yoast SEO if there is no code that can fix this! Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress Title Separator’ is closed to new replies.