|
/ Documentation /Developers Documentation/ Customize Archive Page Title with surerank_archive_title

Customize Archive Page Title with surerank_archive_title

Hook: surerank_archive_title

Description: The surerank_archive_title allows you to modify the title displayed on archive pages generated by SureRank. This can be useful when you want to personalize or brand archive titles instead of using the default ones provided by WordPress or the plugin.

Source: inc/frontend/title.php

Usage: Use this filter to change the archive page title dynamically or statically, based on your site’s requirements.

Example:

PHP
add_filter( 'surerank_archive_title', function( $title ) {
    return 'Blog Archive';
});

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