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

Customizing the Title Separator surerank_title_separator

Hook: surerank_title_separator

Description: This filter allows you to modify the separator character used in SEO titles generated by SureRank. By default, SureRank uses a hyphen (-) or another character as a separator between parts of the title (e.g., post title and site name). You can use this filter to replace it with a custom string, such as a pipe (|), colon (:), or even remove it entirely.

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
On this page
Scroll to Top