|
/ Documentation /Developers Documentation/ CustomizeModify the Search Results Page Title surerank_search_title

CustomizeModify the Search Results Page Title surerank_search_title

Hook: surerank_search_title

Description: This filter allows you to customize the title displayed on the search results page. You can use this hook to modify or completely replace the title based on your preference or brand tone.

Source: inc/frontend/title.php

Usage: Use this filter when you want to change how the search results title appears to your visitors. It’s useful for branding, improving UX, or matching your site’s voice.

Example:

PHP
// Modify the default search results title in SureRank (removes the search query)
add_filter( 'surerank_search_title', function( $title ) {
    return 'Search Results:'; // Custom title without the search query
});

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