How to change the Site Title Separator in WordPress

Last updated on June 26th, 2022 at 11:41 am

In this tutorial, I’m going to show you how to change the site title separator in WordPress. In my case, I had to change the separator from hyphen to pipe.

To change the site title separator time, go to:

1. WP Dashboard -> Appearance -> Editor.
2. Find the Theme Functions functions.php file from the list on the right and click on it.
3. Paste the following php code snippet there:

/* Change WordPress title separator type */

function wploop_change_separator()

{

return '|';

}

add_filter('document_title_separator', 'wploop_change_separator');

In our example, the title separator is ‘|’ (pipe or vertical bar). You can specify your preferred title separator type by changing the value for return '|';.

Leave a Reply

Your email address will not be published. Required fields are marked *