Change the Title Separator
Changes the character between the page name and the site name in browser tabs and search results, for example from a dash to a vertical bar.
Opens WPIDE on
Code
// Character placed between the page title and the site name.
$wpide_title_separator = '|';
add_filter( 'document_title_separator', function () use ( $wpide_title_separator ) {
return $wpide_title_separator;
} );
Notes
Some SEO plugins set their own separator and ignore this one.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.