|
/ 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 allows developers to control whether the site name should be included in the generated SEO title. By default, the site name is appended to the page title (e.g., Page Title – Site Name). You can disable this behavior by returning false.

Source: inc/frontend/title.php

Usage: You may want to disable the site name for more concise SEO titles or to avoid duplication when a custom title already includes branding.

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