If you want to remove the title “Activity” on the activity archive page then WP Travel plugin provides the feature regarding removing the title “Activity” on the activity archive page using filter code.

remove title 'Activity' in Archive

To remove the above-mentioned title, please add the following given code in the functions.php file of your child theme.

add_filter('get_the_archive_title', function ( $title ) {
	if ( is_tax( 'activity' ) ) {
		return preg_replace( '/^[\w]+([\s]?\w+):/', '', $title );
	}
	return $title;
} );

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

Remove title ‘Activity’:

remove title 'Activity'

Further, if you want to rename the “Activity” title on an activity archive page, please add the following given code in the functions.php file of your child theme.

add_filter('get_the_archive_title', function ( $title ) {
	if ( is_tax( 'activity' ) ) {
		return preg_replace( '/^[\w]+([\s]?\w+):/', 'Your text here:', $title );
	}
	return $title;
} );

Rename title “Activity” :

rename title 'Activity'

Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.

Your feedback helps us improve. Feel free to share your thoughts!

Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.

You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.

If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

Get WP Travel Pro