|
/ Documentation /Developers Documentation/ Customizing the Title Separator surerank_title_separator

Customizing the Title Separator surerank_title_separator

Hook: surerank_title_separator

Description: This filter controls the separator added by SureRank’s automatic site-name suffix. It does not replace separators already present in saved titles or templates. The default is ‘ – ‘, including spaces.

Source: inc/frontend/title.php

Usage: Replace title separator.

Example:

PHP
// Change the title separator used by SureRank (default is usually "-")
add_filter( 'surerank_title_separator', function() {
    return ' | ';
});

You can add the example code to your child theme’s functions.php file or use a plugin like Code Snippets to safely insert custom code. Using a code snippet plugin is recommended for easier management and to ensure the code remains active even if you switch themes.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top