|
/ Documentation /Developers Documentation/ Show or Hide Site Name in SEO Title surerank_show_site_name

Show or Hide Site Name in SEO Title surerank_show_site_name

Hook: surerank_show_site_name

Description: This filter controls the site-name suffix added by SureRank’s title generation paths that call add_site_name(). It defaults to true. Returning false suppresses that suffix where the helper runs; it does not remove a site name already present in a custom title or control every title source.

Source: inc/frontend/title.php

Usage: Use false to suppress SureRank’s appended site-name suffix in the supported title paths. Check the final title source separately.

Example:

PHP
// Disable showing the site name in the meta title generated by SureRank.
add_filter( 'surerank_show_site_name', '__return_false' );

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