|
/ Documentation /Developers Documentation/ Customizing the 404 Page Title surerank_not_found_title

Customizing the 404 Page Title surerank_not_found_title

Hook: surerank_not_found_title

Description: This filter allows you to customize the title displayed on the 404 error page. You can override this with your own message to better match your site’s tone or branding.

Source: inc/frontend/title.php

Usage: Use this hook to change the 404 page title text to something more user-friendly or personalized.

Example:

PHP
// Change the "No Results Found" title displayed by SureRank on archive/search pages.
add_filter( 'surerank_not_found_title', function( $title ) {
    return 'Oops! Page Not Found';
});

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